Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- person1 = '{ "name":"Ben", "age":"49", "city":"Napoli" }'
- person2 = '{ "name":"Emily", "age":"24", "city":"Milano" }'
- x = json.loads(person1)
- y = json.loads(person2)
- print(person1["city"])
- print(person2["name"])
- print(person1["age"])
- print(person2["age"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement