How to Solve Error: TypeError int object is not iterable

How to Solve TypeError: ‘int’ object is not iterable

 

Problem solving

TypeError: ‘int’ object is not iterable

Solution Ideas

TypeError: ‘int’ object is not iterable

Solution

Check the object to be iterated over, it can’t be a single integer number, it can be directly converted to a list that

change num to [num]

Haha, successful announcement!

Similar Posts: