Km to miles

Converts kilometers to miles.

  • Follows the conversion formula mi = km * 0.621371.
def km_to_miles(km):
  return km * 0.621371
km_to_miles(8.1) # 5.0331051