Basic Types (Numbers and Strings)Numbersa = 3 # Integer b = 4.5 # Floating point c = 517288833333L # Long integer (arbitrary precision) d = 4 + 3j # Complex (imaginary) number Stringsa = '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, Introduction to Python, Slide 13 July 17, 2000, beazley@cs.uchicago.edu |
>>> |