Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat_num = int(input())
- small = 0
- big = 0
- large = 0
- total = 0
- for i in range(cat_num):
- food = float(input())
- total += food
- if 100 <= food < 200:
- small += 1
- elif 200 <= food < 300:
- big += 1
- elif 300 <= food < 400:
- large += 1
- print(f'Group 1: {small} cats.')
- print(f'Group 2: {big} cats.')
- print(f'Group 3: {large} cats.')
- print(f'Price for food per day: {total * 0.01245:.2f} lv.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement