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 centimetre to meters and centimeter

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 centimetre to meters and centimeter

cm=int(input("Enter total distance in cm "))
m=cm//100
cm=cm%100
print(m," m ",cm," cm")