> I don't understand how precisely the web page would communicate with > the python program. In the simplest case, the webserver software executes your script. Whatever you print() _is_ the webpage. The webserver sends whatever you print() to the user's browser. http://en.wikipedia.org/wiki/Common_Gateway_Interface Alan