Code Lab BetaBUILD. RUN. DISCOVER.
Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
Loading…
Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
Loading…
Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
PYTHON FILES / CHAPTER 05 / Learn / LESSON 12
Mini project: CSV → process → report.json.
1) csv.DictReader for input 2) compute total qty (or another field) 3) json.dump {"total_qty": ...} to report.json 4) print a short summary line
Combines import, open, csv, json, and errors from earlier lessons. This is Files Engine v1.
--- orders.csv ---
name,qty
apple,3
pear,2
Capstone Files Engine v1.
DATA LAUNCH STANDBY
›