hi again sorry i havent been only lately but i have this problem with some code for a digital phonebook. the code is this:
p = float(raw_input("do you want to add a new person? (1 = yes, 0 = no)"))
v = float(raw_input ("do you want to see the phonebook now? (1 = yes, 0 = no)")
n = raw_input("what is the persons name?")
nb = raw_input("what is there number?")
close = print "thank you for using a George Lee program"
raw_input("press enter to close")
phonebook = {'Andrew':8806336, \
'Emily':6784346, \
'Peter':7658344, \
'Lewis':1122345 }
print phonebook
raw_input("press enter to show how to add a key and a value")
phonebook['Ginger' ] = 1234567
print phonebook
print p
while p == 1:
print n
print nb
phonebook[a] = b
print v
while v == 1:
print phonebook
while v == 0:
print close
while p == 0:
print close
print "thank you for using a George Lee program"
raw_input("press enter to close")
when i try to run this it says that the 'n' syntax is invalid
how could i fix this?
also on a different note how could i modify the code to 'save' any additions i make to this dictionary e.g. adding another person to it?