title: Returning a string containing HTML in Python
body: <p>I am just wondering if anyone could help me to get this function to work. I am wishing to return a string which contains an HTML list for each of the items given in a list. </p>
  
  <pre><code>def returnString(l):
  
  hi = []
  
  hi.append(l)
  
  ol = "&lt;ol&gt;"
  
  for i in hi:
      ol += "&lt;li&gt;"+i+"&lt;/li&gt;"
  ol += "&lt;/ol&gt;"
  return ol
  </code></pre>