se solve this question in Python as soon as possible!! I will rate you good for su
se solve this question in Python as soon as possible!! I will rate you good for su
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
Please solve this question in Python as soon as possible!! I will rate you good for sure!!

Transcribed Image Text:what is your quest? solve the case
what is your favorite color? red
what is your
name? Waldo
what is your
quest? find the perfect hiding spot
favorite color? white
what is your
Matt is on a quest to travel the world. Favorite color is blue!
Sir robin is on a quest to find the Holy Grail. Favorite color is crimson!
Dan is on a quest to learn to sail. Favorite color is purple!
Sherlock is on a quest to solve the case. Favorite color is red!
Waldo is on a quest to find the perfect hiding spot. Favorite color is white!
Erika is on a quest to find out where the dang cat went. Favorite color is yellow!
>>>
|
![First, ask the user the following three questions and store the answers in a nested list.
• What is your name?
• What is your quest?
• What is your favorite color?
Store at least 6 sets of responses. Example nested list: [['Sir Robin', 'to find the Holy Grail', 'red'], ['Matt', 'to travel the world', 'blue'], etc...]
Second, sort the list alphabetically by color and print out the results.
We suggest looking up how to use this module: from operator import itemgetter
But any sorting method will work, as long as you can explain it in a comment.
Sample output:
RESTARVE.
what is your name? Matt
what is your quest? travel the world
what is your favorite color? blue
Lup
what is your name? Dan
what is your quest? learn to sail
what is your favorite color? purple
what is your name? Sir Robin
what is your quest? find the Holy Grail
what is your favorite color? crimson
what is your name? Erika
ALPJ](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fa1281e27-cece-46b8-b84c-7eab1e49b972%2Fc9b9a915-b08f-438a-9a8f-59a3ad1fa2e7%2Fy8veaz_processed.png&w=3840&q=75)
Transcribed Image Text:First, ask the user the following three questions and store the answers in a nested list.
• What is your name?
• What is your quest?
• What is your favorite color?
Store at least 6 sets of responses. Example nested list: [['Sir Robin', 'to find the Holy Grail', 'red'], ['Matt', 'to travel the world', 'blue'], etc...]
Second, sort the list alphabetically by color and print out the results.
We suggest looking up how to use this module: from operator import itemgetter
But any sorting method will work, as long as you can explain it in a comment.
Sample output:
RESTARVE.
what is your name? Matt
what is your quest? travel the world
what is your favorite color? blue
Lup
what is your name? Dan
what is your quest? learn to sail
what is your favorite color? purple
what is your name? Sir Robin
what is your quest? find the Holy Grail
what is your favorite color? crimson
what is your name? Erika
ALPJ
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images

Knowledge Booster
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.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education