🗒 Cheat Sheet← Lesson
BitWithBite
Python Worksheet

🐍 Modules & Packages

Chapter: Python · Level ★☆☆ · Time: 30 min
SCORE___ / 20
NameClassDate
After this worksheet you can
Import modulesUse from-import and aliasesUse the standard libraryInstall packages with pip

🧠 Section A · Concept Check ● BEGINNER 4 × 1 = 4

1Bring in the math module:
2import numpy as np creates:
3from math import sqrt lets you call:
4Install external packages with:

🧮 Section B · Problem Solving ● INTERMEDIATE 2 + 3×3 = 11

5math.(16) returns 4.0.
6Alias imports use the keyword .
7Import just sqrt from math.
8Import random and roll a die 1-6.
9What is math.floor(3.9)?

🚀 Section C · Challenge ● CHALLENGE 5

10Why use modules?
💭 Reflection — the most useful thing I learned:
A ___/4   B ___/11   C ___/5   Total ___/20 Teacher's Signature Parent's Signature
✂ answer key — fold or cut before handing out

1-B   2-B   3-B   4-A  |  5 sqrt   6 as   7 = from math import sqrt   8 = import random; random.randint(1, 6)   9 = 3  |  10 = To reuse organised, tested code instead of rewriting it

📄 Need offline practice?Download the print-ready PDF or open the one-page cheat sheet.
⬇ Worksheet PDF 🗒 Cheat Sheet