# 1_basictypes_strings.py # JAH 090402 # # There are four basic types of variables in Python # - strings (illustrated in 1_basictypes_strings.py) # - integers (illustrated in 2_basictypes_numbers_booleans.py) # - floating point numbers (illustrated in # 2_basictypes_numbers_booleans.py) # - booleans (illustrated in 2_basictypes_numbers_booleans.py) # Basic Type #1: Strings of text stringValue1 = "some text" # printing a string to the console print stringValue1 # concatenating strings stringValue2 = stringValue1 + " and some more text" print stringValue2 stringValue2 = 'yet another string' print "stringValue2: " + stringValue2 stringValue3 = '''string value that can extend to additional lines''' print "stringValue3: " + stringValue3 # new line characters (\n) stringValue4 = stringValue2 + " with an extra line\nat the end" print "stringValue4: " + stringValue4 # tab characters (\t) stringValue5 = stringValue4 + "\t" + "and with indented text" print "stringValue5: " + stringValue5