How to Solve NameError: name 'Iterable' is not defined -- collections

Solution: Import the 'Iterable' module

To Solve the error, add the following line to the top of your code.

from collections import Iterable

 

For more information:
Python collections Iterable