webpage
Simple Python Variables Examples
In this post I am going to show you 2 simple ways of using variables in your python html files. The 1st way is using a text, string, variable #!/usr/bin/python msg=’Python Text Variable.’ print “Content-type: text/html\n\n”; print “<html><head>”; print “<title>Simple Python Text Variable</title>”; print “</head><body>”; print “<p>” + msg + “</p>”; print “</body></html>”; Here is […]