Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
NR committed Sep 29, 2024
1 parent a8635a5 commit ede354c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,4 @@ def bring_slippers(self) -> None:


def feed_animals(animals_list: list) -> int:
sum_of_food_points = 0
for animal in animals_list:
sum_of_food_points += animal.feed()
return sum_of_food_points
return sum(animal.feed() for animal in animals_list)

0 comments on commit ede354c

Please sign in to comment.