Python program to convert kilometers to miles and display the output

Python program to convert kilometers to miles and display the output. The Python programming language can be used to convert kilometres to miles. In python programming, the software can convert kilometres to miles. In a Python program, this will convert the distance from kilometres to miles.

km=float(input("Enter the KMs "))
conv_fac = 0.621371
mile=km*conv_fac
print(mile)

Output

Enter the KMs 56
34.796776