Python Program to Convert Kilometers to Miles


Topic: Python Program to Convert Kilometers to Miles

Solution

kilometers = 5.0
conv_fac = 0.621371
miles = kilometers * conv_fac
print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))



List all Python Programs