Statements: Print
Syntax: print object or reference
E.g.
>>> print "hello", 'again'
hello again
>>> print 3.0e5
300000.0
>>> name = "python"
>>> ver = 2.2
>>> print "This is %(name)s %(ver).3f" % vars()
This is python 2.200
Previous slide
Next slide
Back to first slide
View graphic version