Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with loops
#3
Here is what I tried most recently (I've been trying a million different things all morning).

grades_list = float(input('Enter Grades:n')

total = 0
for iter in grades_list:
    total += iter
print("Max =", max)
print("Min =", min)
print("Avg =", total/len(grades_list))
The error I receive simply says: invalid syntax

The issue that I'm having is that the assignment does not go along with our lesson for this week. So I'm trying to teach myself about floating point numbers and how they work with loops.
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