Summary of Datatypes in Python 3
Datatype Description Is Immutable? Example Int We can use to represent the whole/integral numbers Immutable >>> a=10 >>> type(a) <class ‘int’> Float We can use to represent the decimal/floating point numbers Immutable >> b=10.5 >>> type(b) <class ‘float’> Complex We can use to represent the complex numbers Immutable >> c=10+5j >> type(c) <class ‘complex’> >>>…
Read more