Advertisement
Spocoman

Movie Day

Feb 24th, 2022 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. movie_time = int(input())
  2. scenes = int(input())
  3. scene_time = int(input())
  4.  
  5. total = 0.15 * movie_time + scenes * scene_time
  6.  
  7. if total >= movie_time:
  8.     print(f"Time is up! To complete the movie you need {round(total - movie_time)} minutes.")
  9. else:
  10.     print(f"You managed to finish the movie on time! You have {round(movie_time - total)} minutes left!")
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement