Re: [Tutor] program not doing what I need it to do

2018-01-28 Thread Alan Gauld via Tutor
On 29/01/18 00:45, Alan Gauld via Tutor wrote: > scores = [] # three sets of scores. Oops, sorry that line shouldn't be there. It came from my first pass through the code, before I saw how you were storing the data lower down. -- Alan G Author of the Learn to Program web site http://www.alan-

Re: [Tutor] program not doing what I need it to do

2018-01-28 Thread Alan Gauld via Tutor
On 28/01/18 22:06, Edna Broukhim wrote: You have tried to give the variables sensible names but a little bit more work will make your code more readable and therefore easier to debug. You need to rethink your data model slightly. You have a number of users (which you don't explicitly store at pr

[Tutor] program not doing what I need it to do

2018-01-28 Thread Edna Broukhim
I have the following program. It needs to say the user's name, average and the letter grade of each user. I don't know how to fix it so it gives the average of all users. It only gives the average of the last user. user=int(input("How many students?")) Score1=[] Score2=[] Score3=[] name=[] for