Third-party dependencies
A library or package written by someone else that your program imports and relies on. If it has a flaw, every app that uses it is affected, including via dependencies of dependencies.
Understanding Third-party dependencies in Years 9–10 Digital Systems
What it does: Many apps all import the same library, so one flaw in it puts every one of those apps at risk. MyApp imports LibA directly, and LibA imports LibB. LibB is an indirect dependency of MyApp, but a flaw in it still affects MyApp. A dependency is code written by someone else (a library or package) that your program imports and relies on. Library B is still needed for your app to run. Dependencies of your dependencies are called indirect or transitive dependencies. Indirect dependencies can hide risk, so a careful developer keeps track of the whole chain. Dependencies save time, but they are written by other people and can still contain vulnerabilities.
Common mistakes: status_code belongs to the response object r that requests.get() returns, not to the requests library itself. It should be print(r.status_code). A pinned version in requirements.txt uses a double equals sign. It should be requests==2.31.0.
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 41–69) and word search (Modules 41–79).
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
dependencyFill in the Blanks
Spot the Error
Student with a class code? Join your class →