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

In the united states what is the vhf radio safety and distress calling channel
What is another name for the phylum deuteromycota?
Being a Federal government means: A.Power is solely responsible at the national level B.The National and States share power C.The States have all the power D.P
The upper middle region of the abdomen, between the right and left hypochondriac regions, is called the _________ region.
Determine whether the given lengths can be sides of a right triangle. Which of the following are true statements? The lengths 7, 40 and 41 can be sides of a rig
Statutes of limitations for collecting debt:
The Clean Air Act would be a reason for the Environmental Protection Agency (EPA) to regulate car emissions. true or false
When a child is born with trisomy, when did the mutation occur? a. during transcription b. during mitosis c. during meiosis d. during translation?
Select all that apply. Four decisions of the Potsdam meetings included: German disarmament a cut-back of occupation troops the development of German democrati
Evaluate |6(-7)-4| - |-4|·|7| + 8(3)