Importing Modules: Coding lesson for kids
In “Importing Modules”, children learn about import random; random.randint(1, 6).
import random: Brings in Python's random module — extra tools nobody has to build from scratch.
random.randint(1, 6): Gives back a random whole number between 1 and 6 — perfect for a dice roll.
This lesson is part of Python in Coding at Pearls Valley Academy — Real code, beginner-friendly syntax.
Each lesson starts with a short narrated, animated explanation, then hands-on practice. A wrong answer gets a gentle hint, never a penalty, and children earn stars and pearls as they go.