import MySQLdb print "Content-Type: text/html\n" sql = """\ SELECT name, release_date FROM Movie WHERE genre = 'action' """ print """\
This Python code runs an SQL query, and displays the answers in an HTML table.
/* this lists the name and release date of all action movies */
"""
print sql
print """\