Value Comparison in Python

The operators , =, == and != compare the values of two objects. The default behavior for equality comparison (== and !=) is based on the identity of the objects.


Python Integer Numbers

These represent numbers in the range -2147483648 through 2147483647. When the result of an operation would fall outside this range, the result is normally returned as a long integer (in some cases, the exception OverflowError is raised instead).

Knowing data type of a variable!

As we all know that Python changes the type of variable during run time as per it's need. But sometimes we need to see type of variable before performing some operations or calculations further on that variable. So,in order to find data type of a variable use in built function type() >>> firstNumber = 10... Continue Reading →

Create a website or blog at

Up ↑