Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Think of at least five places in the world youd like to visit. Store the locations in a list. Make sure the list is not

Think of at least five places in the world youd like to visit. Store the locations in a list. Make sure the list is not in alphabetical order. Print your list in its original order. Dont worry about printing the list neatly, just print it as a raw Python list. Use sorted() to print your list in alphabetical order without modifying the actual list. Show that your list is still in its original order by printing it. Use sorted() to print your list in reverse alphabetical order without changing the order of the original list. Show that your list is still in its original order by printing it again. Use reverse() to change the order of your list. Print the list to show that its order has changed. Use reverse() to change the order of your list again. Print the list to show its back to its original order. Use sort() to change your list so its stored in alphabetical order. Print the list to show that its order has been changed. Use sort() to change your list so its stored in reverse alphabetical order. Print the list to show that its order has changed.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

Define human resource management.

Answered: 1 week ago