[Tutor] python cgi single double quotes
alan.gauld at yahoo.co.uk
Wed Jul 20 04:44:10 EDT 2016
On 20/07/16 09:23, nitin chandra wrote:
> vimal at Ubuntu-1404-trusty-64-minimal:~$ python
> Python 2.7.6 (default, Jun 22 2015, 17:58:13)
> [GCC 4.8.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> print sys.version
> 2.7.6 (default, Jun 22 2015, 17:58:13)
> [GCC 4.8.2]
> Should I test the above from within html code too ?
Yes, that's what I meant to imply by putting it
inside <p> markers:
>> import sys
>> print "<p> + "sys.version + "</p>"
The idea is to make sure that the web server is
running the same version of Python that you are.
Author of the Learn to Program web site
Follow my photo-blog on Flickr at:
More information about the Tutor