I'm building a program to reada student ID (MXX) and exam grades from an input file, calculate the average, and display the result on screen and write it to an output file. I need to first write the grades to the variable GradeList, but the variable doesn't seem to be getting the info from the .txt file. I'm not sure why GradeList isn't getting updated. Thoughts?
full code(with average function): https://paste.pythondiscord.com/AS4A
partial code: https://paste.pythondiscord.com/DFSQ
.txt file: https://paste.pythondiscord.com/53JA