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

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.