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

A human skin cell contains 46 chromosomes. A frog sperm cell contains 12 chromosomes. Which pair of numbers shows the chromosome number of a normal gamete from
what was the intended purpose of revolutionary pamphlets and articles such as thomas paines common sense and the crisis
Iran and North Korea attracted worldwide attention in the early 21st century because they both have (1) experienced widespread famine (2) discovere
kelly made one batchof peanut and pretzal snack mix. how many grams does she need to add to the snack mix to make 2 kilograms
What is the answer 20 divided by 2(5+5)
Which pair correctly links the region where Enlightenment ideas first developed to a region to which those ideas spread? (1) Asia → eastern Europe
For what South Carolina office must the following qualifications be met: be at least 21 years old, be a qualified voter, and be a resident of the state and his/
Which of these white leaders was an important ally of the civil rights movement? A) president Richard Nixon B) president Lyndon Johnson C) chief Justice Warren
a wagon weighing 1800 newtons is pulled by a horse at a speed of 0.40 m/sec. what is the power of this horse?
what is the LCD of 5/6 and 7 /8