[root@mysql1 pshell]# cat ex9.py
#!/usr/bin/env Python
#-*-coding:utf-8-*-
# here's some new strange stuff,remember type it exactly.
days = "mon tue wed thu fri sat sun"
months = "jan\nfeb\nmar\napr\nmay\njun\njul\naug"
print "here are the days: ", days
print "here are the months: ", months
print """
there's something going on here.
with the three double-quotes.
we'll be able to type as much as we like.
even 4 lines if we want, or 5, or 6.
"""
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]#
[root@mysql1 pshell]# python ex9.py
here are the days: mon tue wed thu fri sat sun
here are the months: jan
feb
mar
apr
may
jun
jul
aug
there's something going on here.
with the three double-quotes.
we'll be able to type as much as we like.
even 4 lines if we want, or 5, or 6.