[Solved] I don’t know why I’m recieving this function error – Python [closed]


You have a list called items inside a module named items, when you call additem you are going to be checking if item in the module items not the list items, so you will get another error.

Either use from items import items or change the name of your items list.

Your error is most likely from calling additem(sword) above your function additem

solved I don’t know why I’m recieving this function error – Python [closed]