Skip to content

Commit

Permalink
Solution refinement :))
Browse files Browse the repository at this point in the history
  • Loading branch information
lilarin committed Jun 18, 2024
1 parent fa8a951 commit 9277406
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/trip.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ def trip(
for shop in shops:
distance = dist(customer.location, shop.location)
fuel_consumption = customer.car.fuel_consumption
distance_price = (
(distance / 100) * fuel_consumption * fuel_price * 2
)
distance_price = (distance / 100) * fuel_consumption * fuel_price * 2
product_price = 0

for product, amount in customer.product_cart.items():
Expand Down

0 comments on commit 9277406

Please sign in to comment.