rabion4408 rabion4408
  • 21-01-2021
  • Computers and Technology
contestada

Write an application that displays the strings in the provided array alphabetically in ascending order.

Respuesta :

sandlee09
sandlee09 sandlee09
  • 24-01-2021

Answer:

Explanation:

The following code is written in Python and it is a very simple function/program that takes in an array of strings as a parameter called names. This array is then passed the built-in sort function which automatically sorts it in ascending alphabetical order. Finally, the print method is called on the names array to print all of its elements out.

def sort_strings(names):

   names.sort()

   print(names)

Answer Link

Otras preguntas

Convert 30.0g Cu(NO3)2 to moles please help
What Is wrong with pedigree c?
can someone help me please
Foods labeled fat free can actually contain less than 0. 5 grams of fat.
Enter the number that make the fractions equal 2/3=4/
GIVING GRAINLIST HURRY
The World Health Organization defines health as a state of complete physical well-being mental well-being social-bling All of the above
When Juan got home from school, he worked on his homework for 45 minutes. Then, he took a break and had a snack for 35 minutes, and after that went to baseball
What is the role of the executive branch in the us government today
Please help!! Why is eye level the best for viewing art? A. eye level allows viewing art from the right perspective B. things seem larger when they are above