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

Simple Python Programs

This section deals with Simple Python Programs. The Python programs in this section performs arithmetic operations like Addition, Multiplication and Division on the given set of input numbers.

It also talks about python programs on exchanging two number values without using any temporary variables, counting the number of integers in a given number, entering the student marks in 5 subjects and displaying the grades.

Python program to print sum of two numbers.

Python program to print square and cube of a number

Python program to print sum, product , difference and average of two numbers

Python program to calculate and print area and perimeter of square

Python program to calculate and print area and perimeter of rectangle

Python program to calculate and print area and circumference of circle

Python program to take input for student details like roll,name,marks of three subjects. calculate and print total per.

Python program to covert temperature in degree centigrade to degree Fahrenheit.
F=(c*(9/5))+32
F=(c*1.8)+32

Python program to covert temperature in degree Fahrenheit to degree centigrade.
C=(f-32)/(9/5)
c=(f-32)/1.8

Python program to swap two numbers

Python program to convert total days to weeks and days

Python program to convert total inches to feet and inches

Python program to convert total centimetre to meters and centimeter

Python program to convert total meters to kilometre and meters

Python program to convert total millimetre to centimetre and millimetre

Python program to convert total days to years, months, weeks and days