If-block: Execute a block of instructions only if the given condition if true

Program to give 20% discount to customer if the bill amount is > 5000
print(“Enter bill amount :”) bill = float(input()) if(bill>5000): discount = 0.2*bill bill = bill-discount print(“Plz pay : “, bill) |