Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

We will pass in a list of numbers

We will pass in a list of numbers. Your job is to find the largest number in that list and output its index, not

the actual value.

You will need to use a utility variable to store the maximum value and a decision to see if each number is bigger than the current maximum value encountered in previous iterations.

# Get our numbers from the command line

import sys

numbers= sys.argv[1].split(‘,’)

numbers= [int(i) for i in numbers]

# Your code goes here

numlist = list(numbers)

for max in numlist:

 print(max)

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"