Write Python program to calculate Electricity Bill

"> PYTHON PROGRAM TO CALCULATE ELECTRICITY BILL

Programming Example

Write Python program to calculate Electricity Bill

Solution

tuc=int(input("Enter the number of units consumed : "))
if tuc>500:
    amount=tuc*9.25
    surcharge=80
elif tuc>300:
    amount=tuc*7.75
    surcharge=70
elif tuc>200:
    amount=tuc*5.25
    surcharge=50
elif tuc>100:
    amount=tuc*3.75
    surcharge=30
else:
    amount=tuc*2.25
    surcharge=20
billTotal=amount+surcharge
print("Electricity Bill : ",billTotal)
Output

Enter the number of units consumed : 345

Electricity Bill :  2743.75

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Website development Company in Allahabad