Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
olyamalysh committed Dec 16, 2024
1 parent 287657a commit 8ffa2a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def serve_cars(self, cars: list) -> float:
income = 0.0
for car in cars:
if car.clean_mark < self.clean_power:
self.wash_single_car(car)
income += self.calculate_washing_price(car)
self.wash_single_car(car)

return round(income, 1)

0 comments on commit 8ffa2a9

Please sign in to comment.