How to fix the Python TypeError: ‘int’ Object is not Iterable
How to fix the Python TypeError: ‘int’ Object is not Iterable
September 9th 2021 new story




Int objects are not directly iterable as they hold a single integer value and do not contain the \*\*‘`__iter__`‘ \** method. Instead of using int, try using list if it makes sense, and it can be iterated using for and while loop easily. Try using the `range()` method in the for loop, which will eventually generate a list of sequential numbers.




Tags
Join Hacker Noon
Create your free account to unlock your custom reading experience.
How to fix the Python TypeError: ‘int’ Object is not Iterable
Source: Super Trending News PH
How to fix the Python TypeError: ‘int’ Object is not Iterable
Philippines news
Pinoy Trending
politics
showbiz
sports
technology
trending Articles
viral post
Post a Comment
0 Comments