Miles to km 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