Crediting code from other sources in comments
A comment placed above code you reused that names the source (such as a URL), the author and the licence, so the original work is credited and your own lines are clear.
Understanding Crediting code from other sources in comments in VCE Applied Computing U1O2
What it does: The comment sits directly above the reused function and names the source, author and licence, which is the core habit of crediting code. Start and end comments show exactly which lines were borrowed, so a reader can tell them apart from the lines you wrote yourself. Removing the source claims someone else's work as your own. Always record where the code came from. Comments are ignored by the computer. They are for people, to show clearly what is your work and what is credited to others. Anything after # on a line is a comment, so it does not affect the program. It only documents the source.
Common mistakes: The licence line has no # at the start, so Python reads it as code and gives a syntax error. It should be # Licence: MIT. The lines below were reused, so the comment must say they are not your own. It should be # Lines below are not my own.
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 89–124) and word search (Modules 8–124).
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
# Source:Fill in the Blanks
Spot the Error
Student with a class code? Join your class →