Question: The Wizard Inventory program COMMAND MENU show - Show all items grab - Grab an item edit - Edit an item drop - Drop an

The Wizard Inventory program

COMMAND MENU

show - Show all items

grab - Grab an item

edit - Edit an item

drop - Drop an item

exit - Exit program

Command: show

1. wooden staff

2. wizard hat

3. cloth shoes

Command: grab

Name: potion of invisibility

potion of invisibility was added.

Command: show

1. wooden staff

2. wizard hat

3. cloth shoes

4. potion of invisibility

Command: edit

Number: 1

Updated name: magic wooden staff

Item number 1 was updated.

Command: drop

Number: 3

cloth shoes was dropped.

Command: exit

Bye!

Use a text named wizard_all_items.txt that contains a list of the items that a wizard can carry.

Your program should stores the items that the wizard is grabbing in wizard_all_items.txt. Make sure to update this file every time the user grabs or drops or edits an items.

Murachs Python Programming

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!