I forgot to type range() in a for loop and it immediately reminded me about by giving an error
TypeError: 'int' object is not iterable
😃😃
You will also get it if you forget to type range in a for loop :
x = 5
for i in x: #since x is obviously not iterable
We probably intended something like below :
x = 5
for i in range(x) :
No comments:
Post a Comment