🗒 Cheat Sheet← Lesson
BitWithBite
Python Worksheet

🐍 Functions

Chapter: Python · Level ★☆☆ · Time: 30 min
SCORE___ / 20
NameClassDate
After this worksheet you can
Define functions with defUse parameters and returnDefault argumentsUnderstand scope

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

1Functions are defined with:
2return does what?
3def f(x=3) means x is:
4A function with no return gives:

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

5Define with the keyword .
6Values are sent back with .
7Write square(n) returning n*n.
8What does print(square(4)) show?
9Write greet(name) printing Hello .

🚀 Section C · Challenge ● CHALLENGE 5

10Difference between print and return?
💭 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-B   4-C  |  5 def   6 return   7 = def square(n): return n * n   8 = 16   9 = def greet(name): print(f'Hello {name}')  |  10 = print shows output; return passes a value to the caller

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