...and it keeps on asking for student 3, student 4, student 5, etc, until the user enters "done".
After the user enters "done", it finds the average of the average of each student.
So, this where I'm going with it:
while True: a1 = input ('Please enter name:') if a1 = str("done"): ???? b1 = float(input ('Please enter midterm:')) c1 = float(input ('Please enter final:')) average = (b1+c1)/2 print ('Name:',a1, 'Midterm:',b1,'Final:', c1,'Average:',average)
I put the ????'s there because I'm not exactly sure where to go at that point. I'm thinking that I want the program to somehow store the average of each student, then after the user enters done, it averages each stored value. I just don't know how I would go about doing that in a while loop. Can someone help?
(Also, I'm doing this for a class so I still have limited knowledge of the Python language. It would be best if all help could stick to the basic way I'm trying to do it. Anything else I haven't learned yet, and I will just get more confused. Thanks!)