I think many python programmers think of an iterable as a container of items that allows several passes through it. In other words, they would think the following code is correct: def count_max_values ...
This is because in Python 3.10, the version I was using, the Iterable class has been moved to the collections.abc module. In order to solve this error, after installing the library with pip install ...