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 alone

Shared 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

1

The program asks the user which operation they want to do.

2

It collects two numbers from the user.

3

It runs the correct arithmetic operation based on the choice.

4

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. 1

    Step 1

    Check the operation

    Use if, elif, and else to decide which calculation to perform.

    Complete in the editorHint available
  2. 2

    Step 2

    Work out the answer

    Create a result variable and assign the correct calculation to it.

    Complete in the editorHint available
  3. 3

    Step 3

    Handle division carefully

    If the user chooses division, make sure they are not dividing by zero.

    Complete in the editorHint available
  4. 4

    Step 4

    Show the result clearly

    Print a message showing the calculation and the result.

    Complete in the editorHint available
  5. 5

    Step 5

    Improve the project

    Add one more feature, such as powers, percentage, or repeating the calculator in a loop.

    Complete in the editorHint available

More to explore

Browse more guided projects, or come back and start this one whenever you are ready.