Ejemplo n.º 1
0
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.")
Ejemplo n.º 2
0
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")
Ejemplo n.º 3
0
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.")
Ejemplo n.º 4
0
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.")