All Python Programs

All Programs

Basic Python Programs

Simple Python programs

If Condition Programs

If condition based Python Programs 

Looping based programs

program based on for loop, while loop, range

Searching and Sorting

Python Searching Programs
Python Sorting Programs

Python program to convert total meters to kilometer and meters

Solution with out using functions
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 "))
print(km," km ",m," m")