course content

Course Content

Introduction to Python

Naming RulesNaming Rules

As mentioned in the previous chapter, variables are widely used for storing values for future usage. There are some restrictions and specifications for variable names in Python:

  • A variable name can contain letters, numbers, or underscores
  • A variable name cannot start with a number
  • Variables are case-sensitive, i.e., Var and var are two different variables
  • No special characters other than underscore _ are allowed
  • You can't use reserved keywords as variables' names (such as, if, while, for, try, ...)


Choose all acceptable names for variables in Python.

Select a few correct answers

Section 2.

Chapter 2