← My dashboard
PUZZLE 002
The cafeteria bill
Python · Module 1 · Numbers+50 XP
Professor Owl
The cafeteria bill needs checking.
The cafeteria bought 12 boxes of pastries at 4.5 each. The manager wants the total and the total with a 10% discount.
Goal
Create total (price × quantity) and discounted (the total with a 10% discount).
Key facts
- * multiplies, / divides, + adds, - subtracts
- A 10% discount means paying 90% of the total
main.py⏳ Loading Python… (the first time takes a few seconds)
Given (already runs before your code)
What your code produced
Run your code and the result will appear here.
🎯 You solve it when your code produces what the goal asks for.