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

Why is a weight problem so problematic for children?A. It makes it more likely for the person to become obese in adulthood. B. It makes it difficult for child
A jar contains 5 black and 9 white marbles. Priscilla draws a marble from the jar. What is the probability that she drew a black marble?
Before the Civil War, one of the sectional differences that existed between the North and the South was disagreement over tariffs. Why had Congress enacted prot
can someone help please?
How do I report child abuse against me online, without getting caught? I really need help S.O.S.
How do you set up this equation
Factor this expression completely, then place the factors in the proper location on the grid. x^3+1/8
Why is granite often used in monuments
The treaty of Versailles was especially harsh against which participant in the war?
Before 1500 , what was the predominate avenue of trade for europe