Write a python program to convert Kilometers to Miles


Topic: Write a python program to convert Kilometers to Miles

Solution

kilometers = float(input("Enter value in kilometers: "))
conv_fac = 0.621371
miles = kilometers * conv_fac
print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))



List all Python Programs