Include quotation marks in a variable
<p>I'm writing an extremely simple search engine in Python, and must use HTML code to create an HTML page with a table on it. This is the code I'm given to use:</p>

<pre><code>&lt;html&gt;
&lt;title&gt;Search Findings&lt;/title&gt;
&lt;body&gt;
&lt;h2&gt;&lt;p align=center&gt;Search for "rental car"&lt;/h2&gt;
&lt;p align=center&gt;
&lt;table border&gt;
&lt;tr&gt;&lt;th&gt;Hit&lt;th&gt;URL&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;b&gt;rental car&lt;/b&gt; service&lt;td&gt; &lt;a href="http://www.facebook.com"&gt;http://www.avis.com&lt;/a&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>This looks fine outside of the Python file, but I need to replace rental car with the variable KEYWORD. The problem arises when I attempt to store the line beginning with <code>&lt;h2&gt;</code> as a variable in order to use the <code>.replace</code> method. Python senses a syntax error because of the quotations in the middle. Is there a way I can store this as a variable anyway? Or is there another way I must go about replacing these words?</p>
