print("Program to calculate Electricity bill-")
unit=int(input("Enter Number of Units Consumed: "))
if(unit>500):
amount=unit*9.25
surcharge=80
elif(unit>=300):
amount=unit*7.25
surcharge=70
elif(unit>=200):
amount=unit*5.25
surcharge=50
elif(unit>=100):
amount=unit*3.75
surcharge=30
else:
amount=unit*2.25
surcharge=20
billtotal=amount+surcharge
print("Electricity Bill",billtotal)
input()
Friday, February 25, 2022
Electricity bill program in python
Subscribe to:
Post Comments (Atom)
MCQ QUESTIONS
Loading…
-
Q-1. In CIN C stands for ......? a.Customer b.Corporate c.Consumer d. Calculation Q2-How many Default Accounting Group in Tally Prime...
-
Normally a student understand that a Computer is A Laptop, A Desktop , A Palmtop . But A refrigerator is also a c...
-
Loading…
No comments:
Post a Comment