Course Name : Problem Solving Using Python Laboratory Course Code : U24GE122
Python Important programs
1. Write a python program to calculate student grade system
2. Write a python program to find if a person is eligible for voting or not 3. Write a python program to find the given number is odd or even 4. Write a python program to find the given number is positive or negative or zero 5. Write a program to find a given year is leap year or not 6. Write a python program to sort a given element using selection sort 7. Write a python program to search for a given element using linear search 8. Write a python program to swap the two numbers using temp variables 9. Write a python program to swap the two numbers using without third variable 10. Write a python program to swap the two numbers using tuple assignment 11. Write a python program to find the smallest of three numbers 12. Write a python program to find the given number is prime or not 13. Write a python program to perform arithmetic operations 14. Write a python program using an Exception Handling 15. Write a python program to perform comparison operations 16. Write a python program to find factorial of a given number using Recursive. 17. Write a python program to find largest of three numbers 18. Write a python program to find factorial of a given number using Non-Recursive. 19. Write a python program to print the first n natural numbers using a While loop 20. Write a python program using Continue Statement. 21. Write a python program using Break Statement 22. Write a python program to print the first natural numbers using a for loop 23. Write a python program using Pass Statement 24. Write a python program to create a list and find the maximum and minimum element. 25. Write a python program to sort the given elements in a list and remove the given element 26. Write a python program to create a string and do the following operations 27. Write a python program to create a tuple and repeating the tuple elements for 4 times 28. Write a python program to create a dictionary and print it and remove a key-value pair. i. Find the length of the string ii. Print the string in Lower case and upper case iii. Replace of a string. 29. Write a python program to create a text file and write some data into the file 30. Write a python program to create a string and do the following operations i. Reverse of a string ii. String Comparison