What a library is: standard vs third-party
A collection of ready-made code you can reuse. The standard library comes with Python; third-party libraries are made by others and must be installed separately (e.g. with pip).
Understanding What a library is: standard vs third-party in VCE Software Development U4O1
What it does: math is in the standard library, so you can import it immediately and reuse its functions such as math.sqrt(). pandas is a third-party library, so it has to be installed with pip before your program can import it. Reusing code from a library means you don't have to write and test common features from scratch. Python does not fetch libraries by itself. If the library is not installed, you get a ModuleNotFoundError. random is part of the Python standard library, so it can be imported straight away and reuses ready-made code.
Common mistakes: The random module is part of the standard library, but it has no function called pick(). The function that chooses an item from a list is random.choice(names). The program uses import math, so pi must be accessed through the module as math.pi. Writing pi on its own causes a NameError. It should be area = math.pi * r ** 2.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 115–124) and word search (Modules 115–171).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
libraryFill in the Blanks
Spot the Error
Student with a class code? Join your class →