learning python ...

hw hw at adminart.net
Sun May 23 00:37:07 EDT 2021


Hi,

I'm starting to learn python and have made a little example program 
following a tutorial[1] I'm attaching.

Running it, I'm getting:


Traceback (most recent call last):
   File "[...]/hworld.py", line 18, in <module>
     print(isinstance(int, float))
TypeError: isinstance() arg 2 must be a type or tuple of types


I would understand to get an error message in line 5 but not in 18.  Is 
this a bug or a feature?


[1]: https://www.learnpython.org/en/Variables_and_Types


More information about the Python-list mailing list