Identifiers in Python Programming

-->Identifying the names of Variables,methods,class,etc...

-->The rules for identifiers in Python.

-->The starting character of the variable must be an alphabet or underscore (_).

-->The total Characters except the starting character may be an alphabet of lower-case (a-z), upper-case (A-Z), underscore, or digit (0-9).

 -->Identifier names should not contain any white-space, or special character (! @, #, %, ^, &, *).

 -->The Identifier names should not be similar to any keyword defined in the Python language.

-->Identifier names are case sensitive.

 Examples:

-->emp name, and Emp Name is not the same.

-->a123, _n, n_9 -->Valid Identifiers

-->1a, n%4, n 9 -->InValid Identifiers


No comments:

Post a Comment

Thank you Very Much.For Given Comment

Downloading Talliki Vandhanam List

--> Citizens can know the status of Talliki Vandhanam Click Here -->Knowing the Status of Talliki Vandhanam   --> In GSWS NBM Login...