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
Use the methods of C4.5 to design a decision tree

Question 1 What is Content Addressable Storage? Explain the elements of Content Addressable Storage Question 2 Explain briefly about DAS Question 3 Explain about N

Data buses: The availability of reliable digital semi-conductor technology has enabled the inter-communication task between different equipment to be significantly improved. P

Function: The purpose of a function is to take in a number of values or arguments, do some calculations with those arguments and then return a single result.  Each language has d

Debugging Once a program has been written, it has to be tested first to ensure that it is free of errors. It is very normal that any program written will contain mistake

Ms-PowerPoint Presentation for Promoting National Parks You have been hired by Tourism Department to make a presentation to the travel agents from different countries. Design

QUESTION (a) Describe what is meant by Clock Skew and Clock Drift among clocks in a distributed system. (b) A clock is reading 08:25:46.0 (hr:min:sec) when it is discovered

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


Dataflow Modeling for DSP Design The necessary components in the research of application-specific computer architectures are: 1) a clearly identified set of problems that can b