Naming conventions

Things to consider and remember

Things to consider

Variable names

  • Give variables descriptive names, such as first_name or homework_score.
  • Avoid single-letter variable names like x or c, except for loop variables like i and j.

Things to remember

  • Use descriptive and meaningful names for variables, functions, classes and files. 
  • Naming should not be too long because:
    • this can waste time
    • it invites typing mistakes.
  • Also, naming should not be too short that you cannot understand its meaning.
  • Follow snake_case naming conventions.
  • Naming conventions are very beneficial when multiple words are used to declare variables and function names.