title: Displaying Python values in HTML
body: <p>How do I display the value of a python variable (in this case it is the key of my Entity class) in html?</p>
  
  <pre><code>from google.appengine.ext import db
  
  class Entity(db.Expando):
      pass
  
  e = Entity()    
  e.put()         # id is assigned
  k = e.key()     # key is complete
  id = k.id()     # system assigned id
  
  html='''
  &lt;html&gt;
      &lt;head&gt;&lt;/head&gt;
      &lt;body&gt;
          &lt;label&gt;Key: %(k) &lt;/label&gt;
          &lt;br&gt;            
      &lt;/body&gt;
  &lt;/html&gt;
  '''
  </code></pre>