Write a python program to convert kilometers to miles(1km= 0.62137 miles)
Answers
Answered by
0
Answer:
# Collect input from the user
kilometers = float(input('How many kilometers?: '))
# conversion factor
conv_fac = 0.621371
# calculate miles
miles = kilometers * conv_fac
print('%0.3f kilometers is equal to %0.3f miles' %(kilometers,miles))
Similar questions