Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- walk_minutes = int(input())
- walks_quantity = int(input())
- calories_consumed = int(input())
- burned_calories_per_day = walk_minutes * walks_quantity * 5
- if burned_calories_per_day >= calories_consumed / 2:
- print(f'Yes, the walk for your cat is enough. Burned calories per day: {burned_calories_per_day}.')
- else:
- print(f'No, the walk for your cat is not enough. Burned calories per day: {burned_calories_per_day}.')
- Taрикатско решение:)
- burned_calories_per_day = int(input()) * int(input()) * 5
- out = ['Yes', ''] if burned_calories_per_day >= int(input()) / 2 else ['No', 'not ']
- print(f'{out[0]}, the walk for your cat is {out[1]}enough. Burned calories per day: {burned_calories_per_day}.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement