Challenge: Quick Maths

Lab Python Beginner 10 points

Use print() to show the answers to these sums. Let Python do the maths – don't type the answers yourself!

  1. 12 + 30
  2. 100 - 58
  3. 6 * 7

Input

None.

Output

Three lines, each with one answer.

Example

Output

42
42
42
Sample output available
Editor
Python

Hints

Numbers don't need quotes.

print(12 + 30) prints the result of the sum.

Solution explanation

Python works out the sum first and then prints the result. Every answer is 42!

Show solution
print(12 + 30)
print(100 - 58)
print(6 * 7)
Output
Answer
HOME LEARN COMMUNITY DASHBOARD