Professional Documents
Culture Documents
Sample+program Odt
Sample+program Odt
This is Python
and hope you are a programmer.
Who wants to learn me?
Answers:
1.
#!/usr/bin/python
print """This is Python
and hope you are a programmer.
Who wants to learn me?"""
2.
#!/usr/bin/python
print "w\tw"
print " w w w"
print " w"
print " w w w"
print "w\tw"
3.
By seperating them with ";"
4.
#!/usr/bin/python
print "hello \'hi\' bye \'why\'"
5.
#!/usr/bin/python
print __doc__