[Solved] How do I add an inventory remaining counter? [closed]
You never define item_type_qty. All you ever do with it in your class is this: self.item_type_qty[[“Pants”,20],[“Dress”,20]] Which has no effect, since it looks like you’re trying to get a value out using weird indexes. If you meant to assign it, do it like this: self.item_type_qty = [[“Pants”,20],[“Dress”,20]] However, you’ll run into another problem with this … Read more