Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def billfunctions(tariff):
- if (tariff == "LT-I"):
- readings = calcLTI_input()
- consumption =final_read-intial_read
- total_cost = calcLTI(consumption, con_type)
- print (total_cost)
- def calcLTI_iput():
- 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")
- init_read = int(raw_input("Please enter the intial reading") or 0)
- final_read = int(raw_input("Please enter the final reading") or 0)
- 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)
- readings = [consumption, init_read, final_read, type_of_conction]
- return readings
Add Comment
Please, Sign In to add comment