how to display a web page with python?
<p>I am learning python at college. I have got a very stupid question. How do i make a web page with python?</p>

<p>I do this and save as test.py</p>

<pre><code>print "Hello test \n";
print "\n"
print "Just testing \n";
</code></pre>

<p>When i go to the url I get the same output</p>

<pre><code>print "Hello test \n";
print "\n"
print "Just testing \n";
</code></pre>

<p>I am really confused. What am i doing wrong? My hosting is with hostgator. On their web site it says to do like this:</p>

<pre><code>#!/usr/bin/python
print "Content-type: text/html\n\n";
print "&lt;html&gt;&lt;head&gt;";
print "&lt;title&gt;CGI Test&lt;/title&gt;";
print "&lt;/head&gt;&lt;body&gt;";
print "&lt;p&gt;Test page using Python&lt;/p&gt;";
print "&lt;/body&gt;&lt;/html&gt;";
</code></pre>

<p>this gives me the same error.</p>
