title: if statement invalid syntax
body: <p>I'm trying to execute the following code, but I'm getting</p>
  
  <pre><code>SyntaxError: invalid syntax
  </code></pre>
  
  <p>at the if statement. I'm sure it's related to html as it worked previously without the preceding html; I'm having some difficulty understanding how to go in and out with html and Python as you can see. </p>
  
  <pre><code>    class MainPage(webapp.RequestHandler):
                  def get(self):
  #preceding ("""&lt;html&gt;&lt;head&gt; tags...                    
  &lt;/head&gt;
  &lt;body&gt;""")
          self.response.out.write(today.strftime("""&lt;html&gt;&lt;body&gt;&lt;p style='color:#3E3535'&gt;%A, %d %B&lt;/p&gt;""")
  
          if mon &lt;= 3:
              var1 = "winter"
  </code></pre>
  
  <p>Thanks in advance for suggestions; the if/elifs are indented properly on page. </p>