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
In a word processing program, under which tab or menu option can you adjust the picture brightness?
Otrada [13]
B. format because changing the brightness of the photo is changing its default format
5 0
3 years ago
Read 2 more answers
The primary stream fed by tributaries within a dendritic drainage network is termed a ________ stream
a_sh-v [17]
<span>TRUNK. In a dendritic system, there are many smaller rivers or streams (the "twigs" of the tree), which are then merged into the tributaries of the main river (the branches and the trunk of the tree, respectively). They tend to develop in V-shaped valleys</span>
6 0
4 years ago
• The technical support department at your company has informed you that you will be receiving a new computer within the next we
alexdok [17]
1) back up your data
2) delete any personal information
3) clear cookies, browsing data, and saved passwords
4) restore any settings you may have changed to original settings
6 0
3 years ago
How do i cancel my brainly premium account?
Vikki [24]

Answer:

press cancel

Explanation:

5 0
4 years ago
Read 2 more answers
Which column and row references are updated when you copy the formula: =F$5+12?
KIM [24]

Answer:

Column F and row 5

7 0
4 years ago
Other questions:
  • How to write a function that counts the letters in a string in C?
    13·1 answer
  • A______ is a graphical representation of numeric data.
    8·1 answer
  • Please help. 15 points!!!!
    8·2 answers
  • function calculate () { var s = 2; var x = 2; var y = 3; if (x &gt; 4) { s=s+ 2; } else if ( y &gt; 4) { s=s+ 4; } else { s+=3;}
    11·1 answer
  • Name three types of hard drives, along with its speed and size.
    8·1 answer
  • Help please! Coding!
    9·1 answer
  • How many people are in Siver, on the game Valorant?
    14·1 answer
  • .....is used to save project in Visual basic .net from file menu
    6·1 answer
  • Select the correct answer.
    12·1 answer
  • terms found in provider documentation (e.g., difficult, extensive, or unusual) would support adding modifier to a cpt code.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!