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