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
QUESTION (a) Being just employed as junior forensic examiner at SAI computer forensic Ltd, your supervisor told you, ‘hey Moona Tambi, we have received a hard disk for examinat

Software: A computer system consists of two parts - hardware and software. The first part, computer hardware, refers to all the visible components of the computer system:  key

Question 1 Write a program to read four floating point numbers and find their sum and average. Question 2 Differentiate string constants and character constants with one exam

Question 1 What is HTTP? How does it work? Question 2 What are the various methods of HttpServletResponse interface? Question 3 What is Web server? What are the va

The Python language has a lot of similarities to Perl, C and Java. Though, there are some specific differences between the languages. First Python Program: relative Mode Programmin

QUESTION (a) Compare the adapter pattern with the façade and decorator patterns. (b) Illustrate a two-way adapter pattern. (c) Describe 3 components of a pattern. (d)

whats the out put of int main(){ int n=310; funcone(n); functwo(&n); cout return 0; } void funcone(intn) n=240; } void func two(intn*) { n=120; }

what is cai

Question 1 Explain the following terms associated with Pattern Recognition Features Collection Question 2 Explain the working of character recognition with a suit

Consider the one-time pad encryption scheme to encrypt a 1-bit message m, and assume m is chosen with uniform distribution from message space M={0,1}. Let E1 be the event "message