Remember: Python is a calculator. It multiplies before it adds, and brackets go first.
Questions
1
Which line shows four point zero?
🔤print(5 * 2)🔤print(8 / 2)🔤print(2 +)
2
Which idea about Python maths is not true?
➗a slash divides and shows a decimal✖️a star between two numbers multiplies them🥈adding comes before multiplying
3
Which line shows six?
🔤print(2 + 4)🔤print(2 +)🔤print(4 * 4)
4
Which line shows fourteen?
🔤print(2 +)🔤print(2 + 3 * 4)🔤print("2" + 3)
5
Which idea about Python maths is true?
🥈adding comes before multiplying✖️a star between two numbers multiplies them↔️Python always works from the first number to the last
6
Which line shows twelve?
🔤print(3 * 4)🔤print(8 / 2)🔤print("2" + 3)
7
Which line shows twenty?
🔤print((2 + 3) * 4)🔤print(3 x 4)🔤print(5 * 2)
8
Which line has a bug?
🔤print(10 - 4)🔤print((2 + 3) * 4)🔤print("2" + 3)
9
Which line has a bug?
🔤print((2 + 3) * 4)🔤print(3 x 4)🔤print(8 / 2)
10
Which idea about Python maths is not true?
🚫brackets do nothing in a sum🥇Python multiplies before it adds➗a slash divides and shows a decimal
11
Which idea about Python maths is not true?
↔️Python always works from the first number to the last🧮brackets make Python work that part out first➗a slash divides and shows a decimal
12
Which line shows six?
🔤print((2 + 3) * 4)🔤print(10 - 4)🔤print(5 * 2)
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.