PYTOHN

PRACTICAL

SOLUTION 

unit = float(input("Enter total units consumed:")) if unit <= 50: amt = unit * 0.50; elif unit <= 150: amt = 25 + ((unit-50) * 0.75); elif unit <= 250: amt = 100 + ((unit-150) * 1.20); else: amt = 220 + ((unit-250) * 1.50); sur_charge = amt * 0.20; total_amt = amt + sur_charge; print("Electricity Bill = Rs., total_amt);

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.