Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

Revision notesQuestionsFor schools
Revise Computing
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Supplementary programming practice/Variables and Constants

Naming conventions

301.3 Variables and Constants

Practise exam questions

Variables and Constants — Note 4 of 4

Use meaningful identifiers.

What you need to know

Variable names should describe what they store. Python uses snake_case (lowercase with underscores) for variables and functions. Good names make code self-documenting.

What to know

  • Use descriptive names: total_score not ts
  • Use snake_case: player_name not playerName
  • Cannot start with a number or use spaces
  • Avoid single letters except for loop counters (i, j)

Code examples

Good vs bad names
python
# Good
player_name = "Alice"
total_score = 95

# Bad
p = "Alice"
ts = 95
← Previous noteTracing variables301.3 Variables and ConstantsNext topic →Common data types301.4 Data Types and Casting

Back to Variables and Constants

Specification notes for programming are in Paper 2.

Variables and Constants

Note 4 of 4

  1. 1Declare variables
  2. 2Constants
  3. 3Tracing variables
  4. 4Naming conventions
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).