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