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
Step: 1
Here is the Python script quiz2apy as per your requirements python usrbinenv py...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Java How To Program Late Objects Version
Authors: Paul Deitel, Deitel & Associates
8th Edition
0136123716, 9780136123712
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App