title: Printing HTML in Python CGI
body: <p>I've been teaching myself python and cgi scripting, and I know that your basic script looks like</p>
  
  <pre><code>#!/usr/local/bin/python
  import cgi
  print "Content-type: text/html"
  print 
  print "&lt;HTML&gt;"
  print  "&lt;BODY&gt;"
  print "HELLO WORLD!"
  print "&lt;/BODY&gt;"
  print "&lt;/HTML&gt;"
  </code></pre>
  
  <p>My question is, if I have a big HTML file I want to display in python (it had lines and lines of code and sone JS in it) do I have to manually add 'print' in front of each line and turn "s into \" , etc? Or is there a method or script that could convert it for me?</p>
  
  <p>Thanks!</p>