I follow the tutorial:

In my PyCharm I follow the tutorial:

I get the error:
Traceback (most recent call last): File "/Users/adob/TestPython/test02/passwd.py", line 19, in bool = isinstance({}, Iterable) NameError: name 'Iterable' is not defined
from collections import Iterable
bool = isinstance({},Iterable)
print(bool)
Output
True
The Iterable is in the collections module, you should import it.
from collections import Iterable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With