Computer Science, asked by nishanthd20092, 8 months ago

what is identifier what are the identifier forming rules of python​

Answers

Answered by rekhakhandal469
8

NAMASTE....❤️❤️

Rules to Create Python Identifiers

Identifier name can't begin with a digit. Python identifier can't contain only digits. Python identifier name can start with an underscore. There is no limit on the length of the identifier name. Python identifier names are case sensitive.

Answered by TeraBhaii
8

\huge{\underline{\rm{Identifiers:-}}}

  • Identifiers are the names given to different parts of the program viz variables, objects, classes, functions, lists, dictionaries and so forth.

\large{\bigstar{\underline{\textrm{Rules for Python Identifiers:-}}}}

The naming rules for Python Identifiers can be summarised as follows:

  1. Variable names must only be a non keyword with no spaces in between.
  2. Variable names must be made up of only letters, numbers and underscores.
  3. Variable names cannot begin with a number, although they can contain numbers.

Note:-

Python is case sensitive as it treats upper and lower- case characters differently.

Similar questions