Start building now
Choose how you want to begin this project.
Open it privately for practice or create a shared workspace to build it together.
No setup required • Guided steps inside the editor
Private practice
Open a private editor and work through the steps at your own pace.
Start project aloneShared workspace
Create a live session so you can teach, pair, or build the project together.
What you'll build
A simple calculator for addition, subtraction, multiplication, and division.
What you'll learn
- How to collect and validate user input
- How to branch between operations with if statements
- How to handle divide-by-zero safely
- How to organise a small Python project clearly
How it works
The program asks the user which operation they want to do.
It collects two numbers from the user.
It runs the correct arithmetic operation based on the choice.
It prints the final answer in a clear format.
Build path
These steps appear inside the editor so you can build one part at a time.
- 1
Step 1
Check the operation
Use if, elif, and else to decide which calculation to perform.
- 2
Step 2
Work out the answer
Create a result variable and assign the correct calculation to it.
- 3
Step 3
Handle division carefully
If the user chooses division, make sure they are not dividing by zero.
- 4
Step 4
Show the result clearly
Print a message showing the calculation and the result.
- 5
Step 5
Improve the project
Add one more feature, such as powers, percentage, or repeating the calculator in a loop.
More to explore
Want a different challenge?
Browse more guided projects, or come back and start this one whenever you are ready.