Advertisement
Spocoman

Cat Walking

Jan 5th, 2022 (edited)
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1. walk_minutes = int(input())
  2. walks_quantity = int(input())
  3. calories_consumed = int(input())
  4.  
  5. burned_calories_per_day = walk_minutes * walks_quantity * 5
  6.  
  7. if burned_calories_per_day >= calories_consumed / 2:
  8.     print(f'Yes, the walk for your cat is enough. Burned calories per day: {burned_calories_per_day}.')
  9. else:
  10.     print(f'No, the walk for your cat is not enough. Burned calories per day: {burned_calories_per_day}.')
  11.  
  12. Taрикатско решение:)
  13.  
  14. burned_calories_per_day = int(input()) * int(input()) * 5
  15. out = ['Yes', ''] if burned_calories_per_day >= int(input()) / 2 else ['No', 'not ']
  16. print(f'{out[0]}, the walk for your cat is {out[1]}enough. Burned calories per day: {burned_calories_per_day}.')
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement