Main.FirstProgram History

Hide minor edits - Show changes to markup

January 21, 2010, at 01:33 PM MST by 129.82.44.241 -
Added lines 1-21:

(:source lang=python:)

"""Our first python program"""

  1. to print the message Hello, World:

print "Hello, World"

  1. You can also use single quotes to surround a string:

print 'Hello, World'

  1. Some elementary arithmetic:

print 1 + 1

  1. a print statement can also be written this way:

print (1 + 1)

(:sourceend:)