How to use dictionary in Python to make simple phone book?
Use dictionary variable as in following example: phonebook = {'John':5353523,'Tonny Lee':216745} If you want to remove John entry from your phonebook just use: del phonebook['John']
Re: How to use dictionary in Python to make simple phone book?
Use dictionary variable as in following example:
phonebook = {'John':5353523,'Tonny Lee':216745}
If you want to remove John entry from your phonebook just use:
del phonebook['John']