Question: please help code in python undefined The Wizard Inventory program COMMAND MENU walk - Walk down the path show - Show all items drop -

please help code in pythonplease help code in pythonundefined The Wizard Inventory program COMMAND MENU walk- Walk down the path show - Show all items drop -undefined

The Wizard Inventory program COMMAND MENU walk - Walk down the path show - Show all items drop - Drop an item exit - Exit program Command: walk While walking down a path, you see a scroll of uncursing. Do you want to grab it? (y): Y You picked up a scroll of uncursing. Command: walk While walking down a path, you see an unknown potion. Do you want to grab it? (y): Y You can't carry any more items. Drop something first. Command: show 1. a wooden staff 2. a scroll of invisibili 3. a crossb 4. a scroll of uncursi Command: drop Number: 3 You dropped a crossbow. Command: exit Bye! Specifications Use a text file named wizard_all_items.txt that contains a list of all the items that a wizard can carry. When the user selects the walk command, the program should read the items from the file wizard_all_items.txt, randomly pick one, and give the user the option to grab it. Your program should create another file names wizard_inventory.txt that stores the items that the wizard is grabing. Make sure to update this file every time the user grabs or drops an item. The wizard can only carry four items at a time. For the show command, display the items that wizard has grabbed (i.e., items in wizard_inventory.txt). For the drop command, display an error message if the user enters an invalid number for the item. . a wooden staff a wizard hat a cloak of invisibility some elven bread an unknown potion a scroll of uncursing a scroll of invisibility a crossbow a wizard's cloak

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!