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

Which word does not help create a tone o enthusiasm experience, unique, thrilling, legendary
Rukmani's struggle to feed her family during the drought is an example of _____.
During the 1800s, which area of the region was largely colonized by France?
One way in which the persian empires contributed to the development of international trade
melissa has 14 reports to file, if each report takes an average of 1 hour and 15 mins, how long would it take to file 70% of them?
What is the density of lead (in g/cm3) if a rectangular bar measuring 0.50 cm in height, 1.55 cm in width, and 25.00 cm in length has a mass of 218.9 g ? expres
What happened when Moctezuma offered Cortés gold to get him to leave?
A scientist observed a cell using an electron microscope. The size of the image was 25mm. The magnification was x 100,000. Calculate the real size of the cell.
Anthony, the plant manager, was talking with another manager about tim, the lead engineer in the corporate r & d department. anthony remarked, "tim is so br
35 multiplied by the quantity r less than 45