Multiplication in Python

Level 112 keystrokes

This calculates 7 multiplied by 8 and prints 56. The * operator performs multiplication.

Python code

# The * operator multiplies two numbers
# 7 * 8 is calculated first, then print() shows the result, 56
1print(7 * 8)

Output

56
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