You are on page 1of 18

PYTHON

PRACTICAL-1 BASIC PROGRAMS

1. Printing statements like “Hello world!”.

2. Programs to demonstrate the python data types.

3. Program to verify whether a given number is even or odd.

4. Python Program for Sum of Squares of first n natural numbers.


PYTHON

5. Program to demonstrate the Python operators and their order of preferences.

6. Program to add/multiply/divide two numbers.


PYTHON

7. Python Program which demonstrates the use of Lists, Tuples, Dictionaries and Sets.

8. Python Program for Compound Interest.

9. Python Program for Simple Interest.


PYTHON

PRACTICAL-2 ARRAY PROGRAMS


10. Python Program to find sum of array.

11. Python program to find largest element in an array.

12. Python Program to find Reversal algorithm for array rotation.

13. Python Program to check if given array is Monotonic.

PRACTICAL-3 LIST PROGRAMS


PYTHON

14. Python program to interchange first and last elements in a list.

15. Python program to swap two elementsin a list.

16. Python | Ways to find length of list.

17. Python program to find smallest number in a a list.


PYTHON

18. Python program to find largest number in a list.

19. Python program to print even numbers in a list.

20. Python program to print odd numbers in a list.


PYTHON

21. Python program to print positive numbers in a list.

22. Python- Remove empty list from a List.

23. Python program to print negative numbers in a list.


PYTHON

24. Remove multiple elements from a List in python.

PRACTICAL-4 MATRIX PROGRAM


25. Python Program to add two matrices.
PYTHON

26. Python program to multiply two matrices.

27. Python program for matrices Product.

28. Adding and subtracting Matrices in Python.


PYTHON

29. Transpose a matrix in Single line in Python.

30. Python | Matrix creation of n*n.


PYTHON

PRACTICAL-5 STRING PROGRAM


31. Ways to remove i’th character from string in Python.

32. Remove all duplicates from a given string in Python.

33. Python | Maximum frequency character in String.


PYTHON

34. Find words which are greater than given length k.

35. Python | Check if a given string is binary string or not.

36. Python Counter| Find all duplicate characters in string.


PYTHON

PRACTICAL-6 DICTIONARY PROGRAMS

37. Python -Extract Unique values dictionary values.

38. Python | Merging two Dictionaries.

39. Python | Sort Python Dictionaries by Keys or Value.

By values-

PRACTICAL-7 SEARCHING AND SORTING

40. Python Program for Binary Search (Recursive and Iterative).


Iterative Method:-
PYTHON

Recursive Method:-

41. Python Program for Linear Search.


PYTHON

42. Python Program for Insertion Sort

43. Python Program for Recursive Insertion Sort.

44. Python Program for Bubble Sort.


PYTHON

45. Python Program for Merge sort.

46. Python Program for Iterative Merge sort.


PYTHON

PRACTICAL-8 PYTHON FILE HANDLING PROGRAMS

47. Python Program to read file word by word.

48. Python program to read character by character from a file.


PYTHON

49. Python program for Difference between sums of odd and even digits.

You might also like