Internal versus external program documentation
Internal documentation is inside the code (comments, docstrings). External is separate, like a user guide or technical document covering each module's purpose, inputs and outputs.
Understanding Internal versus external program documentation in WA Computer Science ATAR Unit 1
What it does: A docstring is stored inside the function itself, so it is internal documentation of the function's purpose. A separate technical document records each module's purpose, inputs and outputs so developers can maintain the program without reading every line. A user guide is a separate document, not part of the code, so it is external documentation. User documentation shows how to install and use the program. Technical documentation is aimed at programmers.
Common mistakes: The docstring says the function returns the area, but this line calculates the perimeter. Internal documentation must match what the code does. It should be return w * h. The docstring is closed with only two quotation marks, so Python sees an unfinished string and gives a syntax error. A docstring must end with three quotation marks.
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 100–314) and word search (Modules 100–470).
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
internal vs external documentationFill in the Blanks
Spot the Error
Student with a class code? Join your class →