Buy this book at Amazon.com
A value is one of the basic things a program works with,
like a letter or a
number. The values we have seen so far
are 1, 2, and
'Hello, World!'.
.
'17'
'3.2'
>>>32'>
>>> zipcode = 02492
^
SyntaxError: invalid token
Other numbers seem to work, but the results are bizarre:
>>> zipcode = 02132
>>> print zipcode
1114
Can you figure out what is going on? Hint: print the
values 01, 010, 0100 and 01000..
_
my_name1:
and del from not while
as elif global or with
assert else if pass yield
break except import print
class exec in raise
continue finally is return
def for lambda try
You might want to keep this list handy. If the interpreter complains
about one of your variable names and you don’t know why, see if it
is on this list$.
width = 17
height = 12.0
delimiter = '.'
For each of the following expressions, write the value of the
expression and the type (of the value of the expression).
Use the Python interpreter to check your answers.