BASE_FARE = 4.00
PRICE_PER_140_METERS = 0.25
def taxi_fare(distance_km):
distance_m = distance_km * 1000
price = BASE_FARE + distance_m / 140 * PRICE_PER_140_METERS
return price
distance = 5
total_price = taxi_fare(distance)
print(f"Расстояние поездки: {distance} км")
print(f"Стоимость поездки: ${total_price:.2f}")