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

How many toothpicks can be shoved in a human ear theoretically? I plan on breaking a record and I seriously need this information!!!
The price p in dollars that a store sets for an items is given by the equation p=c + 1/10c where c dollars is the stores cost for the items if the store sets a
The liquid iodomethane has a density of 2.28 g/mL at 20.0°C. If a 109 gram sample of this compound is needed, what volume of the liquid at 20.0°C must be provid
Need help with this geometric question
PLEASE HELP!!!!!! WHATS THE ANSWER
What is the greatest threat to our environment
What is the height??
During its descent, the pair of sunglasses passed by a climber in the canyon 6 seconds after stefano dropped them. To the nearest meter, what is difference in e
Read the excerpt from Walden. Let us spend one day as deliberately as Nature, and not be thrown off the track by every nutshell and mosquito’s wing that falls o
The focus of a parabola is (2, 5) and the directrix is y = 3. Find the equation of the parabola in standard form.