Level 25 of 50
Tuples & unpacking
explained with PSL scores. Watch the reel, then work through it below: run the code, take the quiz, keep the cheat sheet.
📒 Open the cheat sheetSanaFinal over! The score is 180 for 5!
TeacherTwo values, locked together! Python packs that into a tuple!
score.py
score = (180, 5) runs, wickets = score print(runs, wickets)
TeacherRound brackets make a tuple. Then unpack it into two names!
SanaCan I change the runs later?
score.py
score = (180, 5) score[0] = 200
TeacherNope! Tuples are locked. Try it, and Python says NO!
⏸ Pause & predict: what prints?
a, b = (3, 7) a, b = b, a print(a, b)
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.