[Solved] Sorting score from text file into average


Use a dictionary with the keys as the class names and the value as a dictionary with student names as the keys and a list to store their scores as the value. Then use the json module to json.dump() the data to a file. When you want to add a new score: json.load() the file, add the score like you would with a normal dictionary, and dump the json.dump() the data back into the file. First read the documentation and try to do this on your own. If you get stuck, comment on my answer with the specific problem you are having and a pastebin to the code in question. Good luck!

solved Sorting score from text file into average