The use of type()

^Bart gabriele1NOSPAM at hotmail.com
Mon Feb 11 02:37:45 EST 2019


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

Thank you very much! :)

^Bart



More information about the Python-list mailing list