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
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to