class Inventory(): def import_inventory(sell): filename open("products.txt","r") sell.d for line in filename.readlines(): line line.strip().split(".") for product in line: na, coun product.split("/") na- na. lower() coun - int(coun) if na in sell.d: sell.d[na] +- coun else: sell.d[na] coun filename.close() return sell.d def sell product(sell, sellProducts): products sellProducts.split( temp dict) sellproduct Input Please enter products to selle Torsten products na, cour item split cou int coun) na - na lower na = na.lower) if na in temp: temp[nal +- coun else: temp[na] coun for i in temp: if i in sell: if sell.d[i] >- temp[i]: sell.d[i] temp[i] print("{temp[1]} {i} sold") else: print(f"There is not enough {i} in inventory") if sell.d[i] 0: sell.d.pop(1) else: print(f"{i} does not exist in inventory) det show_remaining(sell): if not bool(sell.d): print Inventory is empty else: for i in sorted(sel1.d. items prankf {1[1] {11113 Inv= Inventory product Inv. Import inventory () orint(product Type here to search print(product) Inv.show_remaining) products import inventory) decision- while decision 1- "3": print("* print("[1] Sell products") print("[2] Show remaining inventory") print("[3] Terminate") - decision input("Please enter your decision: print(" L") if decision -- "1": sell product (products) elit decision - "2": show_remaining products). elif decision3": print("Terminating...) else: print("Invalid input) Sample Run 5 [1] Sell products [2] Show remaining inventory [3] Terminate Please enter your decision: 2 candy : 321 cheese : 171 chips : 80 chocolate : 78 coke : 244 gum : 203 soda : 935 water: 219 [1] Sell products [2] Show remaining inventory [3] Terminate Please enter your decision: 1 Please enter Oroducts to solli COKE 6-water 2 Please enter your decision: 1 Please enter products to sell: cracker_12-candy_5 cracker does not exist in inventory. 5 candy sold. * [1] Sell products [2] Show remaining inventory [3] Terminate Please enter your decision: 2 candy : 316 ul cheese 1 chos 80 chocolate 6 28 E 298 cheese : 171 chips : 80 chocolate : 78 coke : 238 gum: 203 soda : 935 water : 217 [1] Sell products [2] Show remaining inventory [3] Terminate Please enter your decision: 3 Terminating... The problem is that sell product and show remaining are not defined I couldn't find the problem and I want to get like this example