Question: python program using for loop Practice list manipulation with loop. Write a function, named getlargest, that accepts a list of numbers as argument and returns

 python program using for loop Practice list manipulation with loop. Write

python program using for loop

Practice list manipulation with loop. Write a function, named getlargest, that accepts a list of numbers as argument and returns the largest value in the list, and its index. You should write a loop to implement such a functionality. For example, the function call of getLargest(30, 16, 3, -20, 9, 26, 35, -11, 14, should return (35, 6) where 35 is the largest number in list and 6 is the index of 35 in list. get Largest (149, 16, 3, -20, 9, 26, 35, -11, 14, 41) should return (49, 0). 41)

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!