Python program to convert KM into Inches
Convert distance in KM to inches, First convert km into meters, then centimeter,s and finally convert in inches.
#########################################
# Language : Python
# Topic: Convert KM into Inches
# Author : Anjeev Singh
#########################################
km = float(input("Enter distance in KM : "))
meter = km * 1000 # 1 km = 1000 m
cm = meter * 100 # 1 meter = 100 cm
inches = cm / 2.54 # 1 inch = 2.54 cm
print("\n Distance in Inches : ", round(inches, 2) )