Lesson 3 of 5
Python, the super calculator
Python can do math: + to add, - to subtract, * to multiply and / to divide.
You can store the result of a calculation straight into a variable.
apples = 3 * 4 print(apples)
🎯 Your mission
A chest holds 7 bags of 6 gold coins each. Create a variable treasure that calculates the total with *, then print it.
main.py
Loading editor…
Loading Python…
Output
Run your code to see the result here.