Main.Variables History

Hide minor edits - Show changes to markup

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

(:source lang=python:)

"""Python variables"""

  1. you can store a value in a variable

message = "What's up, Doc?" n = 17 pi = 3.14159

  1. you can print a variable

print message print pi

  1. the variable has the same type as the value stored in it:

print type(message) print type(n) print type(pi)

  1. not all variable names are valid

76trombones = "big parade" more$ = 1000000 class = "CS580"

(:sourceend:)