Data Types in python


Python supports four different numerical types:
int (signed integers)
long (long integers [can also be represented in octal and hexadecimal])
float (floating point real values)
complex (complex numbers)

Its used like this:
a=long(input())
a=int(input())
a=float(input())
a=complex(input())

Post a Comment