Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Psychox1k authored Nov 4, 2024
1 parent 26124ca commit 6c92b15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class Car:
def __init__(self, comfort_class: int, clean_mark: int, brand: str) -> None:
def __init__(self, comfort_class: int, clean_mark: int, brand: str)
-> None:
self.comfort_class = comfort_class
self.clean_mark = clean_mark
self.brand = brand
Expand All @@ -22,7 +23,8 @@ def serve_cars(self, cars: list[Car]) -> float:
return round(total_income, 1)

def calculate_washing_price(self, car: Car) -> float:
cost = (car.comfort_class * (self.clean_power - car.clean_mark) *
cost = (car.comfort_class *
(self.clean_power - car.clean_mark) *
self.average_rating / self.distance_from_city_center)
return round(cost, 1)

Expand Down

0 comments on commit 6c92b15

Please sign in to comment.