Skip to content
C

JSON-Based Settings Saver

Easypython

Write a program that saves a dictionary of user settings to a JSON file, then loads it back and prints each setting.

What the problem means: JSON is the standard format for structured data like configuration/settings files — this exercises writing a dictionary out with json.dump() and reading it back with json.load().

Approach: build a settings dictionary from the given theme and notifications value, save it with json.dump(), then reopen and read it back with json.load().

Input: Two lines: the theme (a word), and notifications as the literal text True or False.

Output: Two lines: theme: <theme> notifications: <True or False>

Input (stdin)

Output

Run your code to see output here...