Solution using functions without passing arguments
Solution using functions and by passing arguments
Solution : Without using function
Program/Source Code
Python program to convert total meters to kilometre and meters
m=int(input("Enter total distance in meters ")) km=m//1000 m=m%1000 print(km," km ",m," m")