Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- serial_name = input()
- episode_duration = int(input())
- break_duration = int(input())
- lunch_time = break_duration * 1 / 8
- respite_time = break_duration * 1 / 4
- left_time = break_duration - lunch_time - respite_time
- if left_time >= episode_duration:
- print(f"You have enough time to watch {serial_name} and left with {math.ceil(abs(left_time - episode_duration))} minutes "
- f"free time.")
- else:
- print(f"You don't have enough time to watch {serial_name}, you need {math.ceil(abs(left_time - episode_duration))} more minutes.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement