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
Converts kilometers to miles.
mi = km * 0.621371
.
def km_to_miles(km):
return km * 0.621371
km_to_miles(8.1) # 5.0331051