Question: Python tracing!! payroll = [2000, 3000, 1500] authorised = 0 overpaid = [] I think authorised should be 7000 after the 2nd time else, however

Python tracing!!

payroll = [2000, 3000, 1500] authorised = 0 overpaid = []

Python tracing!! payroll = [2000, 3000, 1500] authorised = 0 overpaid =

I think authorised should be 7000 after the 2nd time else, however there is no such a number in the selection...and also I think i got wrong for the overpaid which i think it should be [1,1] for the second time and [1,1,1] for 3rd time. However, I'm totally wrong!! IF SOMEONE CAN HEEEEELP ME OUT AND EXPLAIN!!! THANKS!!!!

place T authorised overpaid payroll = [2000, 3000, 1500] authorised = 0 overpaid = [] for place in range (len (payroll) ) : # if payroll [place] > 2000 : overpaid .append (place) else: authorised = authorised + payroll (place) 24 3300 4 [1] # if payroll (place] > 2000: 4 overpaid.append (place) A 4 24 3500 T3 2 3300 8t 23500 8t 2 T 600 at else : 4 authorised = authorised + payroll (place) A #

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!