Skip to content Skip to sidebar Skip to footer

TypeError: 'float' Object Not Iterable

I'm using python 3.2.2 on windows 7 and I'm trying to create a program which accepts 7 numbers and then tells the user how many are positive, how many are negative and how many are

Solution 1:

for i in count: means for i in 7:, which won't work. The bit after the in should be of an iterable type, not a number. Try this:

for i in range(count):

Solution 2:


Post a Comment for "TypeError: 'float' Object Not Iterable"