osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The use of type()


>>>> a = 5
>>>> print(a.__class__.__name__)
> int
>>>> b = 5.0
>>>> print(b.__class__.__name__)
> float

Thank you very much! :)

^Bart