1. Other
  2. Other
  3. problem description python codeandnbspyou have a group of friends coming...

Question: problem description python codeandnbspyou have a group of friends coming...

Question details

Problem Description: Python code

 

You have a group of friends coming to visit for your high school reunion, and you want to take them out to eat at a local restaurant. You are not sure if any of them have dietary restrictions, but your restaurant choices are as follows:

 

·     Joe’s Gourmet Burgers—Vegetarian: No, Vegan: No, Gluten-Free: No 

 

·     Main Street Pizza Company—Vegetarian: Yes, Vegan: No, Gluten-Free: Yes

 

·     Corner Café—Vegetarian: Yes, Vegan: Yes, Gluten-Free: Yes 

 

·     Mama’s Fine Italian—Vegetarian: Yes, Vegan: No, Gluten-Free: No 

 

·     The Chef’s Kitchen—Vegetarian: Yes, Vegan: Yes, Gluten-Free: Yes

 

Write a Python program that asks whether any members of your party are vegetarian, vegan, or gluten-free, to which then displays only the restaurants to which you may take the group. 

                                                

Here is an example of the program’s output: 

 

 

 

Here is another example of the program’s output:

 

 

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution