Databases / Chapter 1: What is a Database? / Introduction To Databases

Assignment: JSON

Quiz (5 points)

Please write a Python program that performs the following tasks:

  1. Encode people into a JSON formatted string and write it to /home/people.json
  2. Load /home/numbers.json into a variable called numbers and write numbers['e'] to a file at /home/e.txt.

Please save your program in /home/encode_decode.py

Do your work in the simulator below. Click the "Save & Submit" button to save your work and submit it for grading.

Ready Logicwalk OS Simulator
Become a subscriber to save your progress, see the correct answer, and more!
Previous Lesson Next Lesson

Comments

Please log in to add comments