When you pick something up and carry it (in your inventory) It would be good if the location did not any longer tell you the item you picked up was still there to get.
I wrote a piece of code to replace parts of the location description with a variable.
This is my Cave definition - If you used a global variable for the inventory then you will not have anything in the brackets after the word cave - it will just be def cave() :
my variable called mess is short for message.
This type of code would need to be added to all areas where there is a choice to pick something up.
If you were to allow dropping in a new location too then that again adds another layer of complexity. - Probably beyond what you need for this project.