Advertisement
Guest User

Untitled

a guest
Apr 9th, 2018
2,212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. dict_of_emails = {'1': 'someone@gmail.com', '2': 'someone@yahoo.com', '3': 'someone@hotmail.com'} # Jeez, hotmail, IKR!
  2.                      
  3.                      
  4. key = 1   # Recieved by the system from another file, value maybe 2, maybe 3
  5.  
  6. print dict_of_emails[str(key)]  # Need to get an email ID out of this
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement