Loading...

Let's learn about Python's arithmetic operators.

First, let's read two integers:

#Python 2
a = int(raw_input())
b = int(raw_input())

#Python 3
a = int(input())
b = int(input())

The three basic arithmetic operators are the following:

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)

(We'll learn about division in the next task.)