[Solved] TypeError: ‘int’ Object is Not Iterable - Python Pool
__iter__ dunder method is a part of every data type that is iterable. In other words, for any data type, iterable only if __iter__ method is contained by them. Let’s understand this is using some examples. For iterable like list, dictionary, string, tuple: You can check whether __iter__ dunder method is present or not using the dir method.