Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Define a library.
- ✓Use import.
- ✓Know the standard library.
- ✓Reuse code.
Why reinvent the wheel when you can reuse code others wrote?
Libraries & Modules
Project this and tap each. Have students explore libraries and modules.
50 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — Don’t Reinvent It
Need a random number or a square root — do you really code that yourself?
👩🏫 Teacher Moves
- Pose the question.
- Share ideas.
- Set the goal.
🎒 Student Actions
- Think.
- Share.
- Get ready.
Use — Libraries
Students learn.
👩🏫 Teacher Moves
- Send students to Libraries & Modules.
- Tap each idea.
- Note import to reuse.
🎒 Student Actions
- Tap each.
- Say.
- Note it.
Modify — Use One
Students practice.
👩🏫 Teacher Moves
- import random.
- Use random.randint().
- Try a math function.
🎒 Student Actions
- Import.
- Use.
- Try.
Create — Create
Students apply.
👩🏫 Teacher Moves
- Pick a module for a task.
- Use one of its functions.
- Explain why it helped.
🎒 Student Actions
- Pick.
- Use.
- Explain.
Reflect — Reflect
Students close.
👩🏫 Teacher Moves
- What is a library?
- What does import do?
- Complete the exit ticket.
🎒 Student Actions
- Say it.
- Say it.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.
Incorporate existing code and libraries.
Modify and remix using libraries.
Test programs that use modules.
Build on existing computational work.
One lesson, every learner
Multilingual Learners
- Module example cards.
- Frame: "import lets me use ___."
- Demo a module live.
Support & Access
- Use import random only.
- Use one function.
- Use a template.
Stretch & Extend
- Explore 3 standard modules.
- Install a package with pip.
- Read module documentation.
What to gather
- 📽️Screen / board
- 📚Module cards
- 💻Libraries & Modules
- 💻Python
- 📓Notebooks
- 🎫Exit-ticket slips
Key terms — hover for a quick definition
Exit Ticket
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Reflect: libraries & modules.
Have students use a module function in a small program. A printable module sheet is in the CS library.
Study the key terms
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
Nice work!
Check your understanding
A quick self-check with instant feedback, drawn from this lesson’s key terms.
Nice work!
Printable worksheet
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.
Part A · Write the word that matches each meaning
- an installable library
- modules built into Python
- a file of reusable code
- a reusable block of code
- the tool to install packages
- bring in a module
- reusable collections of code
- use existing code again
Part B · Show what you learned
- What is a library?
- What does import do?
- Why use libraries?
Part B: 1) A collection of pre-written code you can reuse. 2) Brings a module’s code into your program. 3) They save time and give you tested code.