Python Datatype Example - Number


Python number are categorized in int, float and complex

Program
a=20 b=20.339 c=7+8j print("a is type of ",type(a)) print("b is type of ",type(b)) print("c is type of ",type(c)) print("c is a complex type : ",isinstance(c,complex))
Input
Output