Arithmetic Operations

Besides text and numbers, we can also print the results of arithmetic operations.

Basic arithmetic operations in Python are as follows:

  • + (addition)
  • - (subtraction)
  • * (multiplication)
  • / (division)

For example:

print(10 + 1)
print(10 - 5 / 5)

Will output:

11
9

Be careful, if you write the expression in quotes, it will be printed exactly as written, because it is treated as text. For example:

print("10 + 1")

Will output:

10 + 1

Instructions

On the first line, insert the following command:

print(10 * 10)

On the second line, insert the same command with quotes:

print("10 * 10")

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

3/10