1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tju [1.3M]
3 years ago
6

Codio python challenge (max.py)

Computers and Technology
2 answers:
dusya [7]3 years ago
4 0

I hope this helps:

https://stackoverflow.com/questions/3989016/how-to-find-all-positions-of-the-maximum-value-in-a-list

ryzh [129]3 years ago
4 0

Answer:

maximum=numbers.index(max(numbers))      

print("Maximum is at index {}".format(maximum))

<em>Input :</em>

4,5,2,6,2,1

<em>Output :</em>

Maximum is at index 3

Explanation:

In the above program, first max() function is used to find the maximum number of the list which is an inbuilt method of python.

Then, the output of above is passed as an argument to property of a list i.e. index() which gives the index of the parameter passed in this property. Here the maximum number's index is returned by this property.

This output is stored in variable maximum and after that the index of largest number in that list is printed in next line.

You might be interested in
Explain why the effect of stimulant and depressants do not necessarily counteract<br>each other​
zzz [600]

Answer:

Adderall is a stimulant and alcohol is a depressant. This does not mean that the two substances cancel each other out. Instead, they compete with each other in your body. This effect can cause serious problems.

5 0
3 years ago
How do you begin typing a table cell
german

Answer:

Place the insertion point at the beginning of the paragraph in the first cell, press the left arrow key, and begin typing. For vertical tables, place the insertion point at the beginning of the paragraph in the first cell, press the Up Arrow key, and begin typing.

Explanation:

thats how u start

4 0
4 years ago
Why is the term RAW image file generally used to describe a variety of file formats, which are sometimes known as digital raw ca
mihalych1998 [28]

Answer:

c. because RAW files are proprietary.

Explanation:

When scanners and digital cameras are used to capture images that are uncompressed or minimally processed image file, it is known as a RAW image file.

Generally, this file type are usually very large in size because of their lossless quality and does not have any alteration and as such have not been processed; thus, cannot be printed.

The term RAW image file is generally used to describe a variety of file formats, which are sometimes known as digital raw captures because RAW files are proprietary.

8 0
3 years ago
Write a function definition for a function which takes one parameter and returns twice that parameter
dezoksy [38]

Answer:

The function in python is as follows:

def twice(num):

   return 2 * num

Explanation:

This defines the function; The function receives num as its parameter

def twice(num):

This returns twice of num

   return 2 * num

8 0
3 years ago
A _____ is a collection of (potentially) thousands of computers that can respond to requests over a network
Rom4ik [11]

Answer:

server or supercomputer

Explanation:

5 0
2 years ago
Other questions:
  • You have a subnetwork, 192.168.48.0/24. it is divided into subnet a and subnet
    8·1 answer
  • The most frequently applied heuristic in problem solving is a(an) _________, which involves repeated tests for differences betwe
    13·1 answer
  • In a nondatabase, file-oriented environment, data is often partitioned into several disjointed systems with each system having i
    11·1 answer
  • Is the ability to use digital tools for reading communicating and learning online?​
    5·1 answer
  • The purpose of maintaining a network of digital forensics specialists is to develop a list of colleagues who specialize in areas
    7·2 answers
  • In the code snippet, what is the “win” part called in programming?
    12·1 answer
  • Images are available in many formats, such as tif, bmp, gif, jpeg, and ____.
    5·1 answer
  • 3. Fire and police protection is the main responsibility of
    15·2 answers
  • Please someone helpp
    12·2 answers
  • Which of these parts of a computer produces an observable result?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!