Question: My Code: test Cases: camelCase & Python3 (: my code works but when handed in the autograder it replies with (local variable 'avg' referenced before
My Code:

test Cases:

camelCase & Python3 (:
my code works but when handed in the autograder it replies with (local variable 'avg' referenced before assignment)
def minMaxFinder(scores, i): if i+2 >= len(scores): # If we cannot take the next element return # return 0 # Find the lower of next 2 scores minScoreAfter = min(scores [i+1], scores[i+2]) # Find the higher of next 2 scores maxScoreAfter = max(scores[i+1], scores (i+2]) # If the current score is less than the lower of next 2, then the condition of question is if scores[i]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
