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

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

[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

Re: [Tutor] Fwd: Need help with reading and cleaning CSV files for a class

2018-01-28 Thread Alan Gauld via Tutor
On 28/01/18 13:36, Geoff Hancock wrote: > Good day- > I have been asked to help teach students how to clean up a CSV file in > Python. I'm not sure what you mean by "clean up" a CSV file. If the file is malformed then turning it into a well formed CSV file is a non trivial text processing task.

Re: [Tutor] Fwd: Need help with reading and cleaning CSV files for a class

2018-01-28 Thread leam hall
On Sun, Jan 28, 2018 at 8:36 AM, Geoff Hancock wrote: > Good day- > I'm in a difficult situation. > I have been asked to help teach students how to clean up a CSV file in > Python. > The job has fallen to me because the teacher of the course is out on > emergency leave and I

[Tutor] Fwd: Need help with reading and cleaning CSV files for a class

2018-01-28 Thread Geoff Hancock
Good day- I'm in a difficult situation. I have been asked to help teach students how to clean up a CSV file in Python. The job has fallen to me because the teacher of the course is out on emergency leave and I just found out. Tomorrow I have to show students how to get a CSV file and write code to

Re: [Tutor] thinter: can't figure out how to update a window instead of creating a new on

2018-01-28 Thread Alan Gauld via Tutor
On 28/01/18 02:58, Chris Roy-Smith wrote: > I have been playing around with the following code which I want to > update the window, but I creates a new window Yes, you are creating a new window each time. You really need to have a separate unction create the window once and store it (or the

[Tutor] thinter: can't figure out how to update a window instead of creating a new on

2018-01-28 Thread Chris Roy-Smith
Hi, system: Python 3.6, LInux I have been playing around with the following code which I want to update the window, but I creates a new window (with the correct display), but I have not been able to find the solution. Perhaps I'm using the wrong key words in my searches. Thank you for any