Main.Variables History
Hide minor edits - Show changes to markup
January 21, 2010, at 01:37 PM MST
by -
Added lines 1-28:
(:source lang=python:)
"""Python variables"""
- you can store a value in a variable
message = "What's up, Doc?" n = 17 pi = 3.14159
- you can print a variable
print message print pi
- the variable has the same type as the value stored in it:
print type(message) print type(n) print type(pi)
- not all variable names are valid
76trombones = "big parade" more$ = 1000000 class = "CS580"
(:sourceend:)
