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:

use

range(count)

int and float are not iterable

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