Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Naming Rules | Variables
Introduction to Python | Mobile-Friendly
course content

Course Content

Introduction to Python | Mobile-Friendly

Naming Rules

There are several rules for naming variables in Python. These are the following:

  • A variable name must start with a letter or the underscore character, which means a variable name can not begin with a number.
  • A variable name may contain only English letters, numbers, and underscore characters.
  • Variables’ names are case sensitive, i.e., Chapter, chapter, and CHAPTER will be considered three different objects by Python.

Choose all the acceptable names for variables.

Select a few correct answers

Everything was clear?

Section 2. Chapter 2
We're sorry to hear that something went wrong. What happened?
some-alt