Basic Types (Numbers and Strings)

Numbers

     a = 3              # Integer
     b = 4.5            # Floating point
     c = 517288833333L  # Long integer (arbitrary precision)
     d = 4 + 3j         # Complex (imaginary) number 

Strings

     a = 'Hello'                  # Single quotes
     b = "World"                  # Double quotes
     c = "Bob said 'hey there.'"  # A mix of both 
     d = '''A triple quoted string
     can span multiple lines
     like this'''
     e = """Also works for double quotes"""
<<< O'Reilly OSCON 2000, Advanced Python Programming, Slide 10
July 17, 2000, beazley@cs.uchicago.edu
>>>