T22 Script: CSV to JSON
Category: Code. Pass at 3/3.
Prompt
Write a Python script convert.py that reads people.csv and writes people.json grouped by city: {city: [names sorted A-Z]}. Run it and deliver both files.
Inputs
Files attached to the chat:
Checklist
Pass at 3/3.
- convert.py runs without errors (python3 convert.py)
- people.json exactly matches the answer key
- Standard library only
The answer key is not published while the task set is in use.