explain the guidelines for creating identifier in python
Answers
Answered by
4
Answer:
- Identifiers can be a combination of letters in lowercase (a to z) or uppercase (A to Z) or digits (0 to 9) or an underscore _ . ...
- An identifier cannot start with a digit. ...
- Keywords cannot be used as identifiers. ...
- We cannot use special symbols like !, @, #, $, % etc.
Answered by
1
Answer:
Rules for an Identifier:
An Identifier can only have alphanumeric characters(a-z , A-Z , 0-9) and underscore( _ ). The first character of an identifier can only contain alphabet(a-z, A-Z) or underscore ( _ ). Identifiers are also case sensitive in C. For example, name and Name are two different identifiers in C.
Similar questions