title: Python as a replacement for PHP inside HTML
body: <p>Is it possible to use Python for web development in the same way that PHP is used?</p>
  
  <p>In other words, can I add some python code among my HTML that gets run on the server and possibly adds to the HTML?</p>
  
  <p>For example, some PHP code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;p&gt;Cheese:&lt;/p&gt; 
  &lt;ul&gt;
  &lt;?php
      $cheeses = ['brie', 'cheddar', 'death star'];
      foreach ($cheeses as $c){
          echo "&lt;li&gt;".$c."&lt;/li&gt;";
      }
  ?&gt;
  &lt;/ul&gt;
  &lt;p&gt;No more cheese :(&lt;/p&gt;
  </code></pre>
  
  <p>Instead using python could be:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;p&gt;Cheese:&lt;/p&gt; 
  &lt;ul&gt;
  &lt;?py
      cheeses = ['brie', 'cheddar', 'death star']
      for c in cheeses:
          print ("&lt;li&gt;" + c + "&lt;/li&gt;")
  ?&gt;
  &lt;/ul&gt;
  &lt;p&gt;No more cheese :(&lt;/p&gt;
  </code></pre>