Main.FirstProgram History
Hide minor edits - Show changes to markup
January 21, 2010, at 01:33 PM MST
by -
Added lines 1-21:
(:source lang=python:)
"""Our first python program"""
- to print the message Hello, World:
print "Hello, World"
- You can also use single quotes to surround a string:
print 'Hello, World'
- Some elementary arithmetic:
print 1 + 1
- a print statement can also be written this way:
print (1 + 1)
(:sourceend:)
