Python Program to Convert Centimeters to Meters and Kilometers

Write a Python Program to Convert Centimeters to Meters and Kilometers. This Python example allows entering the centimeters and converts them to kilometer and meter. As we recognize, one meter equals 100 centimeters, and one kilometer equals 100000 centimeters.

# Centimeter to Meters and Kilometers
centimeter = float(input("Please Enter the Centimeters = "))

meter = centimeter/100
kilometers = centimeter/100000
 
print("%.2f Centimeters = %.2f Meters" %(centimeter, meter))
print("%.2f Centimeters = %.2f Kilometers" %(centimeter, kilometers)) 
Python Program to Convert Centimeters to Meters and Kilometers 1