Challenge: Quick Maths
Completed
Use print() to show the answers to these sums. Let Python do the maths – don't type the answers yourself!
12 + 30100 - 586 * 7
Input
None.
Output
Three lines, each with one answer.
Example
Output
42 42 42
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)