Question
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
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