Question: How would I code this in the problem below in python? Halloween Candy Create a virtual trick-or-treat candy bag. It should be a problem starting

How would I code this in the problem below in python?

Halloween Candy

Create a virtual trick-or-treat candy bag. It should be a problem starting with a list of candy (strings) as elements. Then, you should allow the user to either "look inside" the bag or to "eat" a piece of candy. Eating a piece of candy shows the candy eaten on the screen but removes it from the list as well.

1. Your answer should use these concepts: lists, popping, loops, strings and anything else you need to complete the problem.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!