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

Choose the right variant 1 This book will take to years to write. A. After two years I'll write this book B. In two years time I'll have written this book C . A
Why are chloroplasts absent in epidermal cells ?
let f(x)=9x-2 and g(x)=-x+3. find f(g(x)).
Six nickels is what percent of one dollar? What percent of $2.00 would it be? Please help.
Why are chloroplasts absent in epidermal cells ?
what is the GCF of 12x and 44xy
When this car moves forward by 180 cm, each wheel does one full turn. What is the diameter of the wheels to the nearest centimetre?
let f(x)=9x-2 and g(x)=-x+3. find f(g(x)).
Which choice is equivalent to the expression below? 5x sqrt 2 - 2 sqrt 2 + 2x sqrt 2 A. 7x sqrt 2 - 2 sqrt 2 B. 2x^2 sqrt 2 C. 3x sqrt 2 D. 7x^2 sqrt 2
What does the random variable (r) for a binomial experiment of n trials represent?