Coding task · Python course · Module 4: Data, APIs and Databases

Writing to JSON

Save data to a JSON file

Task

Save the dictionary animal = {'name': 'Tygrys', 'weight': 200} to the file 'animal.json'