Computers and Technology

Python Activity:
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.
Tip: 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.

Required Program Output
Program Failed for Input: 1,5,8,23,78,22,0 Expected Output: 4

# 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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, Yamari000
What are two of the most common reasons that peolpe who need mental health care do not access it?
Answers: 1
image
Computers and Technology, 24.06.2019 11:30, smann211
Convert 11001110(acdd notation) into decimal
Answers: 2
image
Computers and Technology, 24.06.2019 17:30, sanchez9211
Click on the tab on the ribbon to open the backstage view. file view insert review
Answers: 1
image
Computers and Technology, 24.06.2019 22:50, Bubba06
Which of these might be an example of an advertiser's target group? a. people who have no access to media b. people the advertisers know nothing about c. people who watch a variety of tv shows d. people who live in the same region of the country
Answers: 2
Do you know the correct answer?
Python Activity:
We will pass in a list of numbers. Your job is to find the largest number in...

Questions in other subjects:

Konu
Mathematics, 28.06.2019 10:50
Konu
Mathematics, 28.06.2019 10:50