Question: Write Python script called quiz2a.py . This file should be a valid python file with a shebang and top-level docstring. (1) Create an immutable iterable
Write Python script calledquiz2a.py. This file should be a valid python file with a shebang and top-level docstring. (1)
Create animmutable iterableand name itcafeteria_food. Make sure there are at least four items in this variable. (2)
For each item incafeteria_food, ask the user if they like it or not. X here should be replaced by each item of food. There is no need to save the user's answers. (2)
As acomment, answer this question: if we wanted to save the user's response to each prompt and associate the response with the food in question, what datatype would we use (based on the material we've learned in class so far)? (1)
Example for step #3:
Do you like X? (y/n):
Step by Step Solution
3.44 Rating (147 Votes )
There are 3 Steps involved in it
Here is the Python script quiz2apy as per your requirements python usrbinenv py... View full answer
Get step-by-step solutions from verified subject matter experts
