kilometers = float(input("Enter the value in kilometers: "))
conv_fac = 0.621371 # Conversion factor
# Calculate miles
miles = kilometers * conv_fac
# Display the result
print(f"{kilometers} kilometers is equal to {miles:.2f} miles.")Enter the value in kilometers: 9
9.0 kilometers is equal to 5.59 miles.0.621371, which is the number of miles in one kilometer.print()` function, formatting the output to two decimal places using the f-string notation.