2.07
Completed
Basic Arithmetic Operators Basic Arithmetic Operators

Learn how to calculate with Python using addition, subtraction, multiplication, division, and variables.

Basic Arithmetic Operators

Sounds useful?

Jump into the interactive version.

No setup. No account. Just Python.

Interactive Python lesson

Basic Arithmetic Operators

Python can be a very handy little calculator. This Block teaches you how to use the core arithmetic operators: +, -, *, and /. You will start with tiny calculations, then connect them to variables so your code can calculate totals, scores, quantities, and split values in a clear way.

The focus is beginner-friendly: small examples first, explanations second. You will see how Python calculates the right side of an assignment before saving the result, why multiplication uses * instead of x, and why regular division with / gives a float-style result like 2.0.

What you will learn:

  • Use + to add numbers and combine totals
  • Use - to subtract values and calculate what is left
  • Use * to multiply quantities, prices, or repeated items
  • Use / to divide values and understand float results
  • Store calculation results in variables and reuse them later
  • Break bigger calculations into smaller, readable steps
  • Avoid common beginner mistakes like using x for multiplication or turning numbers into text

By the end, you will be able to write simple arithmetic programs like snack totals, box item counters, bill splits, and mini receipt calculations. Small stuff, yes. But very real programming stuff.

> Start now 129 cards · about 10 min

Ready to practice this in the browser?

> Play now