BHADRA_JAYAKUMAR

Prgrm_1

Dec 3rd, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. def billfunctions(tariff):
  2. if (tariff == "LT-I"):
  3.         readings = calcLTI_input()
  4.         consumption =final_read-intial_read
  5. total_cost = calcLTI(consumption, con_type)
  6. print (total_cost)
  7.  
  8.  
  9. def calcLTI_iput():
  10. consumption = int(raw_input("If you know the exact consuption, please enter the value and leave other two entires empty, else leave this empty") or "0")
  11. init_read = int(raw_input("Please enter the intial reading") or 0)
  12. final_read = int(raw_input("Please enter the final reading") or 0)
  13.  type_of_conction = int(raw_input("Please enter 3 for 3Phase connection and 1 for single phase leaving empty will be traseted as signle phase connection") or 1)
  14.  readings = [consumption, init_read, final_read, type_of_conction] 
  15.     return readings
Add Comment
Please, Sign In to add comment