Dec-07-2018, 08:41 PM
Thank you! That helped me out, but now I'm getting this error message
[python]
Traceback (most recent call last):
File "C:/Users/reccles/Desktop/School/ITS320/ITS320_CTA4_Option1.py", line 22, in <module>
for iter in grades_list:
TypeError: 'float' object is not iterable
[\python]
Here is my overall issue: I don't understand how float numbers work with a loop. If I had a set of variables in front of me, I would know how to write a loop that would show the min, max, and average. I don't understand how to do this with the float variables and my textbook is absolutely no help. Can someone please help me to understand how these work together?
[python]
Traceback (most recent call last):
File "C:/Users/reccles/Desktop/School/ITS320/ITS320_CTA4_Option1.py", line 22, in <module>
for iter in grades_list:
TypeError: 'float' object is not iterable
[\python]
Here is my overall issue: I don't understand how float numbers work with a loop. If I had a set of variables in front of me, I would know how to write a loop that would show the min, max, and average. I don't understand how to do this with the float variables and my textbook is absolutely no help. Can someone please help me to understand how these work together?