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

what is the simplest form of 12/60
which number is greater 20% or 0.02
he has 3/4 hour to make invitations. It takes him 1/12 of an hour to make each card. How many invitations can he make?
The Hittites were the first society to use this as a weapon.
What are some of the best study methods when you have a day to study.
Simplify 3x + (-12x) - 5x. -14x -9x 10x 20x
What best describes why Germany felt the Treaty of Versailles was unfair?
A 2 1/2 pound bag of grass seed covers 18 of an acre. How much grass seed is needed for 1 acre?
Write an expression for the following situation. Riley has a piece of wire that is 4 yards long. He cuts it into pieces that are 1/2 yard long. How many pieces
1826 decreased by 43%