Python program to calculate electricity bill

0
51
prev=int(input("Please enter Previous Meter Reading: "))
prs=int(input("Please enter Present Meter Reading: "))
rate=float(input("Please enter Rate Per Unit: "))
tu=prs-prev        #tu means Total Units
bill=tu*rate
print(" Total bill amount is = ",bill)

   Output:
   Please enter Previous Meter Reading: 800
   Please enter Present Meter Reading: 950
   Please enter Rate Per Unit: 2.45
    Total bill amount is = 367.5

 

 

Python program to calculate electricity bill Write a Python program to calculate electricity bill write a program to calculate electricity bill in python write a program to calculate electricity bill electricity bill program write a electricity bill program write a program of electricity bill write a program of electricity bill in python electricity bill program in python

LEAVE A REPLY

Please enter your comment!
Please enter your name here