Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #the two ways of creating python dictionaries - found here: link 1 - https://pastebin.com/hxCDvCpx + link 2 - https://pastebin.com/bf6VBk4X
- #link 1 = json
- #link 2 = normal
- dict1 = {
- "brand": "FIAT",
- "model": 500,
- "year": 1957-1975,
- "amount": 3,893,294
- }
- print(dict1)
- #normal python - link 2
- import json
- x = '{"first_name":"Jack", "last_name":"Jonas"}'
- y = '{"first_name":"James", "last_name":"Johnson"}'
- z = '{"first_name":"Jude", "last_name":"Jonathon"}'
- #json python - link 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement