🗒 Cheat Sheet← Lesson
BitWithBite
Python Worksheet

🐍 Exceptions

Chapter: Python · Level ★☆☆ · Time: 30 min
SCORE___ / 20
NameClassDate
After this worksheet you can
Catch errors with try/exceptUse else and finallyRaise exceptionsName common error types

🧠 Section A · Concept Check ● BEGINNER 4 × 1 = 4

1Errors are caught with:
2int('abc') raises:
3finally runs:
4Raise your own error with:

🧮 Section B · Problem Solving ● INTERMEDIATE 2 + 3×3 = 11

5Risky code goes in the block.
61/0 raises .
7Wrap int(input()) in try/except ValueError.
8What error does [1,2][5] raise?
9When does else (after try) run?

🚀 Section C · Challenge ● CHALLENGE 5

10Why catch exceptions?
💭 Reflection — the most useful thing I learned:
A ___/4   B ___/11   C ___/5   Total ___/20 Teacher's Signature Parent's Signature
✂ answer key — fold or cut before handing out

1-B   2-B   3-C   4-B  |  5 try   6 ZeroDivisionError   7 = try: n=int(input()) except ValueError: print('Not a number')   8 = IndexError   9 = Only if no exception occurred  |  10 = To handle failures gracefully instead of crashing

📄 Need offline practice?Download the print-ready PDF or open the one-page cheat sheet.
⬇ Worksheet PDF 🗒 Cheat Sheet