Subtraction in Python

Level 115 keystrokes

This subtracts 37 from 100 and prints the result, 63.

Python code

# The - operator subtracts the right number from the left one
# 100 - 37 is 63, so 63 is printed
1print(100 - 37)

Output

63
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Python code and how often they appear.

  • -× 1
  • (× 1
  • )× 1

More Python examples at level 1

← Python typing practice