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

solve the equations 9x+2=3x-10 3(x-2)=-2(x+3)
What does PAMDAS satands for?
If the height and base length of a square pyramid are each doubled, how does the volume of the pyramid change?
who were the "eyes of the ship" on the titanic A.the six lookouts B.the passengers C.the captain and first officer D.the trimmers
is oxygen an biotic or abiotic factor?
Solve- Four twenty is how many dozen??
What is pi divided by 5 minus pi divided by 3?
With which economic system is Smith most associated? A. capitalism B. colonialism C. constitutionalism D. communism
A collection of quarters and dimes is worth $18.30. There are 111 coins in all. How many of each coin are there? __ Dimes __ Quarters
During the Russian Revolution, the Bolsheviks took control of the Russian government. What was one of the results of the Bolsheviks' rise to power? Czar Nichola