top of page
Python

print("price=8")

 

payment=input("Your payment ")

 

price=8

def calculate_change(price, payment):

       if int(payment) < int(price):

            print("Not enough")

       else:

              change = int(payment) - int(price)

              print(f"Your change{change},Thanks!")

calculate_change(price,payment)

HTML

TABLE

bottom of page