Write Python script called quiz2a.py . This file should be a valid python file with a shebang
Fantastic news! We've Found the answer you've been seeking!
Question:
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):
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Posted Date: