def is_even(x): for i in x: #i = float(i) if i % 2.0 == 0: return True else: return False
I keep getting errors saying that int object is not iterable. I commented out the third line because I was trying various things (in this case changing
i into a float rather than an integer to see if that would make the python gods happy. It didn't.
I have tried searching the internet for the answer and found nothing that made sense.
My question isn't how to stop getting the error, it's what the error is actually saying and what the logical process behind debugging it would be.