Section A — Trace the Output
Each snippet is independent. Trace carefully on paper first (watch out for indexing, types, and in-place mutations), then select your answer.
20:00
Section B — Find & Fix the Errors
Each program below contains SIX (6) errors (SyntaxError, TypeError, KeyError, or Logic Error). Click the buggy lines you spot or reveal hints one by one to check your work!
Section C — Python Syntax & Code Drills
Practice writing exact Python expressions and statements for Lists, Dictionaries, Loops, and Output Formatting. Type your answer and check immediately!
Your Midterm Revision Summary
Focus your last-minute revision on whichever section has the shortest bar.
A · Trace the Output (Syntax, Slicing, Lists, Dicts)
0 / 12
B · Find & Fix the Errors (Debugging Syntax & Logic)
0 / 24
C · Syntax & Code Drills (Writing List & Dict Code)
0 / 8
Tip: Read every bracket
[] {} () and data type carefully during the exam!