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

as heat is added to melt ice. Does the temperature change?
What type of communicators use medium pitch, speed, and volume of voice with good eye contact instilling trust in others
HELP PLEASEEEEEEE!!!!!!!!!!!
How does groundwater become polluted? a. Pollutants mixed with water pass through permeable layers above the aquifer. B. Factories dump their waste directly int
Compare the population growth rate in industrially developed countries to that in developing countries
how do u get a job at 13 ​
Parallel lines m and n are cut by the transversal line t prove <1 and <4 are supplementary move options to the boxes to complete the proof
Keira is pregnant and has just started to feel movement from her baby inside her womb. Keira is likely to be how far along in her pregnancy
Write an exponential equation in the form y = ab^x whose graph passes through points (1,0.84) and (2,1.008)
Solve for the value of y. (2y+1)° (5y-3)°​