Python Practice Problems List
Python Practice Problems List
Note :
1. Do not share the document with others.
2. Don’t download the document, refer from here, will be adding new
problems if it seems worth doing.
3. Don’t use inbuilt functions while practicing the problems. After the
completing program try to explore with inbuilt functions.
4. Don’t try to mug up the problems.
5. If you are comfortable in other programming languages also, try to
implement the same in that language also.
6. If you have asked about any new programs in an interview, please
do let me know, so that we can add the problem to the practice list.
Problems on Lists:
1. Write a program to find the maximum number in a list
2. Write a program to find the minimum number in a list
3. Write a program to check whether targetsum is possible in a list or not
a. Input : [10,20,30,40], Targetsum = 60
b. In above 20+40 = 60
c. So, Print Possible
4. Write a program to print duplicate elements in a list.
a. Input : [1,2,3,4,5,5,6,]
b. Output: 5
5. Write a program to reverse a list.
a. Input : [10,20,30,40]
b. Output: [40,30,20,10]
6. Write a program to find the sum of all elements in the list.
7. Write a program to search a given element in a list.
a. Input : [10,20,30,40,50,15,20,5], SearchElement = 15
b. Yes, element found at index 5
8. Sort the given array using sorting algorithms (Refer Material)
9. WAP to find the how many times KeyElement repeated in List
Input : [10,20,10,10,20,30,40,50,60] KeyElement = 10
Output : 10 repeated for 3 times
Problems on Matrix:
Problems on Strings:
Problems on dictionaries: