Jan-25-2017, 05:49 PM
I guess you see clear if i do this.
total need to an
>>> total = 9.0 >>> type(total) <type 'float'> >>> for fred in total: ... print(fred) ... Traceback (most recent call last): File "<interactive input>", line 1, in <module> TypeError: 'float' object is not iterateAs mention bye wavic,
total need to an
Iterable
or maybe an integer then it can be used with range()
.