SHARE
TWEET

Untitled

a guest Jul 19th, 2019 273 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user = { "name": "Ed", "email": "john@yahoo.com",
  2.          "age": 20, "purchases": [1, 2, 3, 4]}
  3.  
  4. user["name"] = "anna
  5.  
  6. print(user)
  7.  
  8. for key in user:
  9.     print(key)
  10.    
  11. print(user.items())
  12.  
  13. for key, val in user.items():
  14.     print(key)
  15.     print(val)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top