I am making a text-based adventure game and am having a little trouble.
I want to delete an item from an inventory list however, it's index is unknown as the user may of picked up other items before the one i'm trying to delete.
How would I go about deleting it?
the list is:
inventory = ["sword", "healing potion"]
and when you go through the game you pick up items and it gets added to this list.