Python snake_case naming
A naming style where all letters are lowercase and words are joined by underscores, like student_score. Python uses it for variables and functions, and it should be used consistently.
Understanding Python snake_case naming in VCE Applied Computing U1O2
What it does: first_name separates words with an underscore, while firstName uses a capital letter, which is camelCase. Both variable names use snake_case, so the program keeps one consistent style and is easier to read and maintain. Python functions use lowercase words joined by underscores, so calculate_average() is correct.
Common mistakes: studentScore is camelCase. Python style uses snake_case for variables, so it should be student_score = 85. Line 3 also uses student_score, so the names would not match. Python function names should use snake_case, not camelCase. The line should be def get_average(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 8–88) 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
snake_caseFill in the Blanks
Spot the Error
Student with a class code? Join your class →