Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 = []

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions