Python Identifiers, Basic Computer Science

A Python identifier is a name used for classify a function, variable, class, module or any other object. An identifier begins with a letter A to Z or a to z or an underscore (_) followed by zero or additional underscores, letters, and digits (0 to 9).
Python does not permit punctuation characters for example @, $, and % within identifiers. Python is a case sensitive programming language. Therefore Manpower and manpower are two unlike identifiers in Python.
Here are following identifier naming conference for Python:
• Class names start by an uppercase letter and all additional identifiers with a lowercase letter.
• Starting an identifier by a single leading underscore points to by conference that the identifier is meant to be private.
• Starting an identifier with two leading underscores points to a strongly private identifier.
• If the identifier as well ends with two trailing underscores, the identifier is a language-defined individual name.

Posted Date: 5/4/2012 9:23:59 AM | Location : United States







Related Discussions:- Python Identifiers, Assignment Help, Ask Question on Python Identifiers, Get Answer, Expert's Help, Python Identifiers Discussions

Write discussion on Python Identifiers
Your posts are moderated
Related Questions
A dictionary is variable and is one more container type that can store any number of Python objects, counting other container types. Dictionaries consist of pairs (identified items

Header contains routing and error control information Payload carries the actual user information, either voice, data or video

tell me formulas

difference between recursion and iteration


constant key use for in calculator

100 animals and their respiratory organs

In a certain word game a player can buy vowels and consonants. The first vowel is free; each additional vowel cost $1. The first two consonants are free; each additional constant c

two characteristics og CISC architecture?

Two-tiered architecture: This approach basically introduced a database server to replace the file server. The emergence of relational database management systems and graphica