Values and Types

Int

# <- any line that begins with the pound symbol is a comment
#int
print 17
print type(17)
 
# !- this may look like an int but is a string
print type('17')
 
# !- this is not a legal integer.  
# This is interpreted as a comma-separated list of 3 integers
print 1,000,000

Float

print 3.14159
#any integer can be converted into a float
print float(17)

String

#string - double or single quotation is fine, so long as they match
print "Hi Joy"
print 'Hi Joy'
print type("Hi Joy")