Reverse sort of list. Sort short_names in reverse alphabetic order. Sample output with input: 'Jan Sam Ann Joe Tod'['Tod', 'Sam', 'Joe', 'Jan', 'Ann'] Use Python,

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter18: Stacks And Queues
Section: Chapter Questions
Problem 9SA
icon
Related questions
Question
CHALLENGE ACTIVITY
8.2.1: Reverse sort of list.
 
Sort short_names in reverse alphabetic order.

Sample output with input: 'Jan Sam Ann Joe Tod'['Tod', 'Sam', 'Joe', 'Jan', 'Ann']
 
Use Python, please.
344614.2153518.qx3zqy7
1 user_input = input()
2 short_names - user_input.split()
1 test
passed
3
4 ' Your solution goes here ''
5
6 print(short_names)
All tests
passed
Run
Transcribed Image Text:344614.2153518.qx3zqy7 1 user_input = input() 2 short_names - user_input.split() 1 test passed 3 4 ' Your solution goes here '' 5 6 print(short_names) All tests passed Run
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Mergesort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage