Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- call_length = int(input("Length of call (minutes):"))
- call_placed = int(input("Hour of call (24 hour format):"))
- total_cost = .08 * call_length
- if 18 < call_placed < 24:
- total_cost * .25
- elif call_length > 30:
- total_cost * .10
- if 0 < call_placed < 8:
- total_cost * .50
- elif call_length > 30:
- total_cost * .10
- print("Total price of call: ${:.2f}".format(total_cost))
Advertisement
Add Comment
Please, Sign In to add comment