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

_____ stimulation inhibits the smooth muscle action of the stomach. somatic sympathetic parasympathetic hormonal
Removing food, dirt, and debris from the surface is called what?
find the missing factor 7s^2+19s+10 = (s+2) ()
What are the real zeros of this function f(x)=X^3+4x^2+x-6
how does judicial review affect the u.s government?
Jaime graphed the quadratic y=-2x^2-12x+3. The equation of the line of symmetry of the function is x=-3 What is the vertex of the function?
URGENT!!!! 25 POINTS
x+y=9 y=1/2x What are the coordinates of the point where the graphs of the two equations intersect?
The general feeling or attitude of a poem towards its subject matter is called a poem’s _____.tonepersonathemedramatic situation
What is the correct name for Na20?