Converts miles to kilometers.
- Follows the conversion formula
km = mi * 1.609344
.
代码实现
def miles_to_km(miles):
return miles * 1.609344
使用样例
miles_to_km(5.03) # 8.09500032
Converts miles to kilometers.
km = mi * 1.609344
.
def miles_to_km(miles):
return miles * 1.609344
miles_to_km(5.03) # 8.09500032