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
icon
Related questions
Question
100%
Please solve this question in Python as soon as possible!! I will rate you good for sure!!
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!
>>>
|
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
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
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Properties of Different Architectures
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
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education