Right, this coursework has been bugging me for the whole of the year so far and my teacher's pretty crap and doesn't know what he's doing, so I thought I'd ask on here as a last resort. Idea is that we create a quiz for students for 3 classes to be written to file and then read back in and outputted to the teacher, sorted alphabetically, by highest score and average score. That bit will be easy compared to the first part.
I'm on Task 3, and need to code the quiz so that only the last 3 recent scores are stored for each student, however being new to Python, I have no idea how to do. Tried StackOverflow however the code is too complex, anyone know how to solve this?
Btw, I write a list of lists to each class file, and each main list contains 2 nested lists, one for the name and the other for the score. If anyone can help me store the last 3 scores only, it'd be greatly appreciated and you'd be a life saver! Once I've coded this hard bit, I'm sorted for all coursework in all lessons. Thanks.