Put in order · Python course · Module 4: Data, APIs and Databases
Reading JSON from a File
Arrange the steps for reading JSON:
Items to put in order
- import json
- data = json.load(f)
- with open('data.json') as f:
- print(data['name'])
You can check the correct answer by solving this task in the CodeWorlds game.