Naming rules

There are a few rules we need to consider when creating variables.

Variable rules

  • Can contain letters: example
  • Can contain numbers: example1
  • Can contain underscores: example_1
  • Can contain dots: example.1
  • Cannot start with numbers: 2example
  • Cannot start with underscores: _example
  • Cannot start with a dot if directly followed by a number: .2example
Create variables through assignments