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
You can find the limits in the sys module.
>> import sys
>>> print sys.maxint
The above statement works in Python 2.x only.
But note that modern Python versions will silently convert
data types when calculation results no longer fit in current one.
Python’s long integers can be as large as you like, as long
as your computer doesn’t run out of memory…
>> number = 10**545465415454
The above code causes system to freeze!