Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ab={ 'Keith' :'thesomethingdumb@gmail.com',
- 'Kyle' :'19letterslong@gmail.com',
- 'Schwami':'nschwami@gmail.com',
- 'Andy' :'atshort08@gmail.com'
- print 'Andy\'s address is' % ab['Andy']
- ab['Complex/Rockets'] = 'podcast@complexrockets.com'
- del ab['Andy']
- print '\nThere are %d contacts in the address book\n' % len(ab)
- for name, address in ab.items():
- print 'Contact %s at %s' % (name, address)
- if 'Andy' in ab:
- print '\nAndy\'s address is %s' % ab['Andy']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement