301.3 Variables and Constants
Practise exam questionsVariables and Constants — Note 4 of 4
Use meaningful identifiers.
Variable names should describe what they store. Python uses snake_case (lowercase with underscores) for variables and functions. Good names make code self-documenting.
total_score not tsplayer_name not playerNamei, j)# Good
player_name = "Alice"
total_score = 95
# Bad
p = "Alice"
ts = 95Back to Variables and Constants
Specification notes for programming are in Paper 2.