Identifiers in python
A python identifier is a name used to identify a variable, function, class, object etc. An identifier should start with a letter from A to Z or a to z or an underscore (_) followed by any letters or digits (0-9).
Rules for writing identifiers :
1) Identifiers can be a combination of letters in lower case (a to z) or upper case (A to Z) or digits (0-9) or an underscore (_).
2)An identifier cannot be start with a digit.
3)Keywords cannot be used as identifiers.
4) We cannot use special symbols like !, @, $, #, %.
5)An identifier can be of any length.
1) Identifiers can be a combination of letters in lower case (a to z) or upper case (A to Z) or digits (0-9) or an underscore (_).
2)An identifier cannot be start with a digit.
3)Keywords cannot be used as identifiers.
4) We cannot use special symbols like !, @, $, #, %.
5)An identifier can be of any length.
⇐Prev
Next⇒
Comments
Post a Comment