Question: write this code in Python, making sure the output matches exactly with proper commenting and ashering to the guidelines specially. In this program, you will

write this code in Python, making sure the output matches exactly with proper commenting and ashering to the guidelines specially.


In this program, you will create a simple Music Recommendation System. You

will ask the user several questions about what kind of music they  

In this program, you will create a simple Music Recommendation System. You will ask the user several questions about what kind of music they are interested in and then suggest what they should try listening to. In order to provide a targeted recommendation, each set of options provided is dependent upon the user's answer to the prior question. You must use three levels of questions and give the user three choices for each question. If this is unclear, look carefully at the sample runs below. In each case, there are three questions before the user is given a recommendation and each question has three choices. Also note that the second and third questions are different in each run as they are dependent on how the user responds to the first question. To restate the above in more technical terms, you must use nested if statements in this program. The second level options must be "inside" the if statements of the top level and the same for the third level. In my sample runs, the three "levels" of questions (genre, sub- genre and sub-sub-genre) yield a band recommendation. However, you could use genre, sub-genre and band that yields a song recommendation or some other aspects of music such as instrumentation or vintage. In other words, you can choose all the options for the questions and the answers. If the options are long, you may want to allow the user to enter a shortened response, by putting the allowable words in parentheses (see the sample runs below as a guideline for this). Please note that you must allow the user to enter their responses with upper case, lower case or mixed case characters. For example, if one of the options is pop, the user might enter Pop or POP or even pop and they should all be treated the same way. If the user enters something other than the allowable choices, you should display the error message shown below and terminate the program. Use of lists (structures that use []) and dictionaries (structures that use {}) are not permitted in this assignment.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly Heres a Python code implementation for the Music Recommendation System python Function to validate user input def validateinputuserinput validoptions userinput userinputlower for option in v... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!