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