def buy(product, num, price): if check(product, num) == True: print("You bought %s and spent %s" % (product, str(num * price))) else: print("Sorry! We are out of this product.")
def buy(product, num, price): if check(product, num) == True: #nupr=int(num)*int(price) print("you bought", product, " and spent", num * price) else: print("sorry! wq are out of thi product")
def buy(product, num, price): if productcheck.check(product, num): print("You bought", product, "and spent", num * price) else: print("Sorry! We are out of this product.")
def buy(product, num, price): if prod.check(product, num) == True: print("You bought " + product + " and spent ", num * price) else: print("Sorry! We are out of this product.")