Answered step by step
Verified Expert Solution
Question
1 Approved Answer
list sort() Sort the items of list in-place. my_list = [14, 5, 8] my_list.sort() [5, 8, 14] list.reverse() Reverse the elements of list in-place. my_list
list sort() Sort the items of list in-place. my_list = [14, 5, 8] my_list.sort() [5, 8, 14] list.reverse() Reverse the elements of list in-place. my_list = [5, 8, 14] my_list.reverse() [14, 8, 5] Sort short_names in reverse alphabetic order. Prompt "Enter names: " then read the names from the keyboard. Ex: If the input is: Jan Sam Ann Joe Tod Sample output for this input: ['Tod', 'Sam', 'Joe', 'Jan', 'Ann']
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started