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:

 My Code: test Cases: camelCase & Python3 (: my code works

test Cases:

but when handed in the autograder it replies with (local variable 'avg'

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!