Skip to content

Variables

Python Variables

Naming Variables

  • Make code readable - name is better than n and length is better than l
  • Can use multiple words - separate them with an underscore
  • Can include numbers, but variables can't start with a number
  • Can't use "reserved" words - like print, input, len