Python 3- Assigns Grades
• Define a function to prompt the user to enter valid scores until they enter a sentinel value -999. Have this function both create and return a list of these scores. Do not s
Solution 1:
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
.
Post a Comment for "Python 3- Assigns Grades"