[Solved] Python 3- assigns grades [duplicate]


You defined your function to be getScore() but you’re calling getScores(), so as would be expected this throws an error because the function you’re calling doesn’t actually exist / hasn’t been defined.

Addendum: Since you changed your question, after fixing the previous error.

Likewise you’re calling grades, but grades is defined in your other function not within the scope of the function where you’re trying to iterate over grades.

0

solved Python 3- assigns grades [duplicate]