cm to m in python 1

cm to m in python

# def meter(cm):
    # return (cm *(c/100))

c = int(input("Enter meter to convert in centimeter :"))
print(" The  conversion of meter to centimeter is ",c/100 )

Here is what the above code is Doing:
1. We are taking input from the user and storing it in a variable called c.
2. We are printing the conversion of meter to centimeter.
3. We are using the format() method to print the result.

Similar Posts