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

3(2x+4)=24 solve for x
Structures and verbs Pepita es muy __________
A group of 6 students was asked, "How many hours did you watch television last week?" Here are their responses.11,12,20,4,10,13
A laras scale consists of C, C#, Eb, F#, G, G#, Bb A. False, a pelog scale consists of C, C#, Eb, F#, G, G#, Bb B. False, a slendro scale consists of C, C#, Eb,
How did The Crusades contribute to the Age of Exploration?
Find the recursive formula. 2, 32, 62, 92, ...
what measures the change in prices of a basket of goods and services in a given year recession depression deflation inflation
Study this image. Which feature forms at this plate boundary?
what happened as societies grew into civilization?
Please solve 1-4 in ****ML Language***** please