Programming Python Python Identifiers, Objects | Assignment Statement

Python Identifiers, Objects | Assignment Statement

-

In this article we will discuss about python Identifiers, Objects, and assignment statement. Here assignment statement is the most important python command, because it establishes an identifier associates it with the object. For example:

acceleration = 9.8

This python command establishes acceleration as an identifier associates it with the object (9.8). In this case for the assignment statement, 9.8 is the floating point object with the value 9.8. So, here behind the scene is, the identifier acceleration references an instance of float class having value 9.8.

Python Identifiers

Identifiers in python are case sensitive, therefore acceleration and Acceleration are two distinct names. We can use almost any combination of letters, numerals, and underscore character as Identifiers. The primary restrictions are that an identifier can not begin with numeral (thus 1atom is an illegal name), and also that there are 33 specially reserved words that can not be used as identifier. The semantics of a python identifier is most similar to a reference variable in Java or a pointer variable in C-plus-plus. So each identifier in python is implicitly associated with the memory address of the object to which it refers.

Python is a dynamically typed language, therefore there is no advance declaration associating an identifier with a particular data type.

Latest Articles

Dictionaries | HashMap in Python | Working with Key-Values

Dictionaries in Python is similar to Hashmap comparing to other languages. It stores data as a key-value...

Hash Table | Indexing | Hashing Algorithm | Python Implementation

This article will talk about a high-level view of the Hash Table. As a programmer, this technique...

Eigenvector Eigenvalue | Linear Algebra Fundamentals

Eigenvector ($bar{v}$) in linear algebra is a non-zero vector (matrix) that doesn't change its direction during linear...

Pivot Table | Microsoft Excel | Create Data Insight Easily

Pivot table in microsoft Excel is an useful function that gives us a way to create insight...

Macro Function in Microsoft Excel | Automate Repetitive Task

This article we will talk about the Macro. It is a function in microsoft excel which basically...

SVD | Singular Value Decomposition | Machine Learning Fundamentals

Singular Value Decomposition or SVD is the general purpose useful tool in Numerical Linear Algebra for data...

Must read

Dictionaries | HashMap in Python | Working with Key-Values

Dictionaries in Python is similar to Hashmap...

Eigenvector Eigenvalue | Linear Algebra Fundamentals

Eigenvector ($bar{v}$) in linear algebra is a...

You might also likeRELATED
Recommended to you