what is identifier what are the identifier forming rules of pyrhon
Answers
Answered by
10
A Python identifier is a name used to identify a variable, function, class, module or other object. An identifier starts with a letter A to Z or a to z or an underscore (_) followed by zero or more letters, underscores and digits (0 to 9).
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
11
A Python identifier is a name used to identify a variable, function, class, module or other object. An identifier starts with a letter A to Z or a to z or an underscore ( _ ) followed by zero or more letters, underscores and digits (0 to 9).
Python does not allow punctuation characters such as @, $, and % within identifiers. Python is a case sensitive programming language.
Similar questions