loops — predict the output9 / 9
enumerate and zip — the loops ai writes when it's not lazy
Checkpoint
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
Final drill. Combine enumerate and zip to print a numbered list
where each line shows position, name, and score:
Expected output:
1. maya — 95
2. marcus — 88
3. riley — 71
Hint: enumerate(zip(names, scores), start=1) gives you
(1, ("maya", 95)), (2, ("marcus", 88)), etc.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _