ramylan00
ramylan00 ramylan00
  • 15-01-2021
  • Computers and Technology
contestada

Write a program to insert an array of letters (word), then arrange the letters in ascending order and print this array after the arrangement.​

Respuesta :

tonb
tonb tonb
  • 15-01-2021

Answer:

def split(word):  

   return [char for char in word]

word = input("Enter a word: ")

chars = split(word)

chars.sort()

sorted = ''.join(chars)

print(sorted)

Explanation:

Here is a python solution.

Answer Link

Otras preguntas

6. Why do we need to breathe all day and all night?
Explain the general responsibilities of a child life specialist and give an example of a situation where such a specialist would be needed.
Lee el poema y escoge la palabra correcta para completar la frase. Read the poem and then choose the correct word to complete the sentence. Versos Sencillos Yo
Complete the equation of the line through (4,-8) and (8,5)
Find all zeros of the function (including imaginarys) show all work please:x^3+12x^2+73x+164
Ideal Gas Law :PV=nRT; Solve for R.
What did General George Washington order done with his copy?Why do you think he gave this order?
Identify the x- intercepts of the graphed function. A. noneB. -1 and 1It seems to obviously be 1 and -1, but on the previous question, the increasing intervals
Explain the difference between a Physical change in property and a Chemical change in property
20 POINTS!! Assume the exponential growth model ​A(t)=A subscript 0 e superscript kt and a world population of 6.7 billion in 2005. If the population must stay