0% complete
Mapped unit-wise to CBSE AI 417 Class 10 syllabus.
Chapter 1 of 13 12 min
Python for data, refreshed
Story
Aanya and Vihaan reach a new challenge: "Python for data, refreshed". Think about class scorebook.
Pixel beeps: "Don't just read about it — let's learn by DOING. Try the demo below! "
The idea
Lists, dicts & loops. Data work leans on lists (ordered values), dictionaries (key→value) and loops. marks = {'Aarav': 88, 'Diya': 92} maps names to scores.
Functions keep it clean. Wrap repeated logic in a function: def average(nums): return sum(nums)/len(nums). Reuse it everywhere.
Indian-life example — Class scorebook
A dict of names→marks plus an average() function is already a tiny data tool you can grow.
Interactive demo — do it yourself
Pixel · Step 1 of 4
Tap a Mango, then tap the Mango box.
Mango (0)
Orange (0)
Practice — your turn
A dictionary maps…
try.py
Python sandboxTerminal
› Click Run to execute. First run loads Python (~6s).
Recap
- Lists, dicts & loops
- Functions keep it clean
+15 XP on complete
Finish the demo and practice above to continue.