Computer 2

Monday, February 23, 2026

Inventory Manager Project

Agenda

  1. Answer questions about Twine quiz. (A 7-point curve resulted in an average of 72.1% with a median of 74%.)
  2. Finish and turn in the Lists worksheet.
  3. Turn in any late work. Several students have not turned in their Twine projects.
  4. Read about the Inventory Manager Project.
  5. Start the Inventory Manager Project, which is due at the end of class next Monday, March 3, 2026.

Inventory Manager Project

Overview

Build a text-based inventory manager for a video game character. The program uses a list to track the player’s items and lets them view, add, remove, and search their inventory through a menu.

Requirements

Your program must do the following:

  1. Start with a list of 3 default items (you pick them — sword, health potion, whatever you want).

  2. Display a menu with these options:

  3. Keep looping until the player chooses Quit.

  4. Handle each option:

Example Output

== INVENTORY MANAGER ==
1. View items
2. Add item
3. Drop item
4. Check for item
5. Item count
6. Quit

Choose an option: 1

Your inventory:
 sword
 shield
 health potion

Choose an option: 2
Item to add: bow
bow added!

Choose an option: 4
Search for: arrow
You do not have arrow.

Choose an option: 6
Goodbye!

Video Demo

Here is a video demo of my version.

Grading

Criteria Points
List created with 3+ starting items 5
Menu displays and loops correctly 7
View prints all items 7
Add works using append 6
Drop works using remove, handles missing items 10
Check uses in keyword correctly 5
Count uses len() 5
Code is clean and has comments 5
Total 50

Bonus (optional, +3 each)

Hints

Here are some hints to help you with the project: