Ad
Code
Diff
  • def forbes_route(*distance: list) -> int:
        """Find the greatest distance in km, converts to miles and return."""
        return (max(*distance)) // 1.6
    • def forbes_route(*distance: list) -> int:
    • """Find the greatest distance in km, converts to miles and return."""
    • greater_distance = max(*distance)
    • km_to_miles = greater_distance // 1.6
    • return km_to_miles
    • return (max(*distance)) // 1.6