Level 22 of 50
Lists
explained with a bazaar list. Watch the reel, then work through it below: run the code, take the quiz, keep the cheat sheet.
📒 Open the cheat sheetSanaAmmi's bazaar list! Aloo, pyaz, and I'll forget the rest!
TeacherMany items, ONE variable! That's a list!
bazaar.py
items = ["aloo", "pyaz"] print(items) print(items[0])
TeacherSquare brackets, commas between items. Index 0 is the first, just like strings!
SanaAmmi changed her mind! Can I swap pyaz for dahi?
bazaar.py
items = ["aloo", "pyaz"] items[1] = "dahi" print(items) print(len(items))
TeacherYes! Lists can change. Just put a new value at that index!
TeacherAnd len() counts the items: 2!
⏸ Pause & predict: what prints?
scores = [45, 80, 12] print(scores[1])
Where this leads
Python is step one. Building AI that ships is the rest.
The diploma takes you from zero to deployed computer vision, LLM and agent projects, with engineers who build them for a living. Already code? The bootcamp does it in three months.