Basic Arithmetic, online
Six activities your students do on their own devices. See who's finished, and their scores.
Learning
Understanding
Testing
Basic Arithmetic in one minute
What students need to know
Python's four basic arithmetic operators are +, -, *, and /. They follow the standard order of operations — multiplication and division happen before addition and subtraction, so 8 + 3 * 2 evaluates to 14, not 22. One Python-specific quirk: / always returns a float, even when the numbers divide evenly — 10 / 4 gives 2.5, and even 20 / 4 gives 5.0, not the integer 5.
Mistakes students make
- Writing
xinstead of*for multiplication (5 x 3is a syntax error, not multiplication) is a common slip carried over from maths class. - Dividing by zero —
10 / 0— raises aZeroDivisionErrorrather than returning a value.
PREVIOUS · MODULE 5Basic Data Types
YOU ARE HERE · MODULE 6Basic Arithmetic
NEXT · MODULE 7String Concatenation
What students will learn in this module
Every question in Module 6
Quick questions
- What is
5 + 3?A8B53 - What is
10 - 4?A14B6 - What is
6 * 2?A8B12 - What is
15 / 3?A5.0B5 - What does
*mean?AMultiplyBAdd
Key terms
Students type the meaning of:
5 + 310 - 46 * 215 / 3
Match the pairs
5 x 3Match it to what it doesresult = 10 / 0Match it to what it doestotal = 8 + 3 * 2Match it to what it doesresult = 10 / 4Match it to what it doesprint(7 - 3)Match it to what it doesprint(3 * 4)Match it to what it doesFill in the blanks
sum = 5 _ 3
multiply = 10 _ 2
subtract = 15 _ 5
quotient = 20 _ 4
total = 7 + 3 print(_____)
Spot the error
Question 1
Atotal = 5 + 3Bresult = 10 x 2Cprint(result)
Question 2
Asum_val = 7 + 3Bdifference = 15 - 5Cprint(sum)
Question 3
Aanswer = 20 / 4Btotal = 5 + 10Cproduct = 6 * 2Dprint(anser)
Question 4
Aa = 5Bb = 3Cresult = a + bDdifference = 10 - 4Eprint(reslt)
Question 5
Atotal = 10 + 5Bproduct = 6 * 3Cquotient = 15 / 0Dprint(quotient)
