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