In this we are going to see a program to calculate Electricity Bill in Python Programming Language.
unit = int(input("Enter The Electric Unit : "))
amount = 0
if unit <= 50:
amount = unit * 0.5
elif unit > 50 and unit <= 150:
amount = 25 + ((unit - 50)*0.75)
elif unit > 150 and unit <= 250:
amount = 100 + ((unit - 150)*1.2)
else:
amount = 200 + ((unit-250)*1.5)
charge = amount * 0.2
total = charge + amount
print("Electric Bill Amount Is : ",total)
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP