Task
📝 Task: Circle area
📋 What to do:
1. Import the math module (has π)
2. Create function circle_area(r) that returns area
3. Formula: S = π × r²
4. Call with radius 5, wrap in round(..., 2)
💡 Template:
import math
def circle_area(r):
return math.pi * r ** 2
print(round(circle_area(5), 2))
# Expected: 78.54
💡 What's new:
• math.pi — the number π ≈ 3.14159
• r ** 2 — squaring (r²)
• round(x, 2) — round to 2 decimal places