Calculate electric bill using python
# unit bill in rupee
<100 5 per unit
<200 6 per unit
>200 8 per unit
unit=200
if unit<100 :
bill=unit*5
el if unit<200 :
bill=unit*6
else :
bill=unit * 8
print(" the electric bill is", bill)
# unit bill in rupee
<100 5 per unit
<200 6 per unit
>200 8 per unit
unit=200
if unit<100 :
bill=unit*5
el if unit<200 :
bill=unit*6
else :
bill=unit * 8
print(" the electric bill is", bill)
Comments
Post a Comment