Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with loops
#5
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?
Reply


Messages In This Thread
Help with loops - by freckles - Dec-07-2018, 07:10 PM
RE: Help with loops - by ichabod801 - Dec-07-2018, 07:16 PM
RE: Help with loops - by freckles - Dec-07-2018, 07:26 PM
RE: Help with loops - by micseydel - Dec-07-2018, 08:08 PM
RE: Help with loops - by freckles - Dec-07-2018, 08:41 PM
RE: Help with loops - by ichabod801 - Dec-07-2018, 08:56 PM
RE: Help with loops - by micseydel - Dec-07-2018, 08:59 PM
RE: Help with loops - by ichabod801 - Dec-07-2018, 09:04 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020