Learn Before
Relation

Rules for Naming Variables

Variables, which store values, can have names of any length, but variables named with the following will be considered invalid:

  • Have spaces
  • Start with numbers
  • Possess illegal characters (i.e. $)
  • Is a Python Keyword

As long as the variable name does not possess any of the above characteristics, it will be valid.

0

1

Updated 2021-05-28

Tags

Data Science