Python Programs

Here we are providing you a big collection of important Python programs and examples. These Python programs will help you in learning different basic concepts  like loops, Array, Functions, Pointers, etc.

 

Python Programs

 

Python is a high-level, interpreted, and multipurpose programming language. It is used to create web applications, mobile applications, desktop applications, scientific and numeric applications and software development. Software developers used Python to develop a variety of software applications easily. Python is known for its syntax, which is easy to learn and helps developers to build software applications quickly. Python is an open-source language, meaning it is freely available to everyone.

 

 

Basic

1. Print Hello World
2. Add Two Numbers
3. Swap Two Numbers
4. Area of circle

 

 

If/Else

1. Check Number is Odd or Even
2. Check Leap Year

 

 

Loops

1. Sum of Natural Numbers
2. Check Prime Number
3. Check Armstrong Number
4. Print Fibonacci Series
5. Find Factorial using 4 different ways
6. Check Palindrome Number
7. Check Palindrome String
8. Print Multiplication Table

 

 

Array

1. Print the elements of an array
2. Reverse Array Elements in Python
3. Find largest element in array
4. Find kth largest element in an array
5. Find Length of Array in Python
6. Find Length of Array without Len() Function

 

 

Function

1. Find LCM of Two Numbers
2. Display Calendar
3. Find the Largest Among Three Numbers

 

 

String

1. Reverse a String
2. String Compare
3. Concatenate two Strings

 

 

Matrix

1. Matrix Addition in Python
2. Matrix Multiplication in Python

 

 

Searching/Sorting

1. Linear Search
2. Binary Search
3. Bubble Sort
4. Selection Sort
5. Insertion Sort

 

 

Miscellaneous

1. Bit Stuffing Program in Python

2. How to convert list to string in Python

 

 

Python Lab Manual/ Python Language Programming Lab (KCS453)

 

1. To write a python program that takes in command line arguments as input and print the number of arguments.

2. To write a python program to perform Matrix Multiplication.

3. To write a python program to compute the GCD of two numbers.

4. To write a python program to find the most frequent words in a text file.

5. To write a python program find the square root of a number (Newton’s method).

6. To write a python program exponentiation (power of a number).

7. To write a python program find the maximum of a list of numbers.

8. To write a python program linear search.

9. To write a python program Binary search.

10. To write a python program selection sort.

11. To write a python program Insertion sort.

12. To write a python program merge sort.

13. To write a python program find first n prime numbers.

14. To write a python program simulate bouncing ball in Pygame.

15. Write a python program to demonstrate working of classes and objects.

16. Write a python program to demonstrate constructors.

17. class method and static method in python.

18. Concept of polymorphism in python (method overloading and overriding)

19. Write a program to  demonstrate inheritance in python.

 

 

More Python Programs will be added soon……

 

 

 

Scroll to Top