← Python

Imports

import loads a module so its functions and variables can be used in your script

What it does: Beyond the four basic operators, Python has three more. // (floor division) divides and rounds down to the nearest whole number, so 10 // 3 gives 3, not 3.33. % (modulo) returns the remainder left over after division — 10 % 3 is 1, because 3 goes into 10 three times with 1 left over. ** (exponent) raises the left number to the power of the right, so 2 ** 4 is 16. A common practical use of % is checking whether a number is even: number % 2 == 0.

Common mistakes: Writing // with a space in between (a / / b) is a syntax error — it has to be two characters with no gap. Confusing % with "percentage" is another: it always returns a whole-number remainder, not a percent.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
What does // do?
Integer division (no decimal)Regular division
Matches
❌ result = 10 % 0
Error: Modulo by zero
Applying
Meanings
Term
//
Meaning
Floor division - divides and rounds DOWN to the nearest integer.
Practice
print(10 // 3)
Testing
Gaps
print(10 3) # Result: 3
Check Answer
Spots
2b = 3
3result = a / / b

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Narwhal' badge — Unicorn Coder, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. What does // do?
A. Integer division (no decimal) ✓
B. Regular division
// is floor division — it drops the decimal part from the result
2. What does % do?
A. Calculates percentage
B. Returns the remainder ✓
% is the modulo operator — it returns what's left over after division
3. What does ** do?
A. Raises to a power (exponent) ✓
B. Multiplies twice
** is the exponent operator — 2**3 means 2 × 2 × 2 = 8
4. What is 10 // 3?
A. 3.33
B. 3 ✓
10 ÷ 3 = 3.33 — floor division drops the decimal to give 3
5. What is 10 % 3?
A. 1 ✓
B. 3
3 goes into 10 three times (9), with 1 left over

Match the Pairs

result = 10 % 0 Error: Modulo by zero
2 ^ 3 Error: Use ** not ^ for powers
10 % 2 == 0 Valid: Check if even
2 ** 10 Ok: 2 to the power 10
print(17 // 5) Output: 3
print(17 % 5) Output: 2

Key Term

//
Floor division - divides and rounds DOWN to the nearest integer.~~%

Fill in the Blanks

1. print(10 // 3) # Result: 3
2. print(10 % 3) # Result: 1
3. print(2 ** 3) # Result: 8
4. print(7 % 2) # Result: 1 (remainder)
5. print(5 ** 2) # Result: 25

Spot the Error

Question 1
A a = 10
B b = 3
C result = a / / b
D print('Floor division:', result)
Line C — No space between the slashes: use // not / /
Question 2
A base = 2
B exp = 3
C result = base ^ exp
D print('Power:', result)
Line C — Python uses ** for power, not ^ (^ is a different operator)
Question 3
A a = 10
B b = 3
C result = a % % b
D print('Remainder:', result)
Line C — Only one % sign for modulo: not %%
Question 4
A base = 10
B exp = 3
C result = base * * exp
D print('Power:', result)
Line C — No space between the asterisks: use ** not * *
Question 5
A result = 10 mod 3
B a = 10
C b = 3
D print('Remainder:', result)
Line A — Python uses % for modulo, not the word 'mod'
For Teachers

Create a free class, add this module to a journey, and track who's stuck.

Create a free teacher account →

No credit card. No setup fee. Make a class and invite students in under three minutes.

For Students

Practice this topic interactively, track progress, and unlock badges.

Start Learning Free →

Have a class code?