Decode School

Decode School - The School for Problem Solvers
Welcome to My Blog.
Need Assignment / Project Guidance (or) Training in Python?

Meters to Kilo Meters in Python

Python program to get meter m from user and find kilometer km

Sample Input 1:


Sample Output 1:


Program or Solution

m=int(input("Enter Meters:"))
print("{} kilometers".format(km))


Program Explanation

get meter using input() method multiply it by 1000 (1kilometer = 1000 meters)