The problem is in the line -
grade_1, grade_2, grade_3, average = 0.0
and
fName, lName, ID, converted_ID = ""
In python, if the left side of an assignment operator has several elements that need to be highlighted, python will try to iterate the right side sequentially and assign each iterated value to each variable sequentially.
You may need something like
grade_1, grade_2, grade_3, average = [0.0 for _ in range(4)] fName, lName, ID, converted_ID = ["" for _ in range(4)]
source share