richardcruzzz39
richardcruzzz39 richardcruzzz39
  • 10-12-2020
  • Computers and Technology
contestada

When max() function is used on lists of words, what does max() find? For example:
aList = ["bacon", "cheese", "nuggets", "donuts", "yogurt"]
print (max (aList))

Respuesta :

goodLizard
goodLizard goodLizard
  • 10-12-2020

Answer:

The function max() would return the last item of the list in alphabetical order, so in this case, print(max(aList)) would return 'yoghurt'.

Hope this helps :)

Answer Link

Otras preguntas

According to Romeo what makes time go by faster
how many inches are there in 3.5 yd
1. Tell the number of atoms of each element in these compounds. (1pt per blank) N2O3 _____atoms of Nitrogen ______ atoms of Oxygen CaCO3 _____atoms of Calciu
which force causes acceleration(gravity)(friction)(velocity )(energy)
I need help with this question!
When writing a personal narrative, which point of view do you use? A. first-person B. second-person C. third-person limited D. third-person omniscient
Use the graph below to fill in the blank with the correct number: f(1) = _______ X, Y graph. Plotted points negative 3, 0; negative 2, 2; 0, 1; and 1, negati
Demonstrative pronouns are sometimes called pointing words. True False
Which of the following theories suggest that members of a crowd do not have individual opinions?
Etruscans had a strong belief in _____. fate the sun god the gods of Mount Olympus humanity