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
what is Metropolitan area network?

Our instructor gave us a project in making a mechanical game or simple device using assembly language, can anyone give me a an example of a project description for our proposal?

. State laws of transverse vibrations in stretched strings. Explain how do you verify them using sonometer.


Question (a) What do we signifies by saying that HTTP is a stateless protocol? (b) Explain three ways of working around that statelessness issue (c) Explain with the help

Search strategy-artificial intelligence: Soundness: You  can hear  in  some  application domains  -  i.e.  automated  theorem proving - that a search is "sound and complet

Output Devices: Each output unit of computer system transmits information from the CPU and converts the electrical pulses to an appropriate output form. A printer, for example

how will a poorly conducted feasibility study affect an implemented system

Word Processing Software : The main use for word processing is found in secretarial offices and small publishing companies. However, if you are involved in generating your own cor