# Miscellaneous Python Assignments

1. Write a Python program to calculate the sum of all the numbers in a given list.
2. Write a Python program to check if a given string is a palindrome.
3. Write a Python program to find the largest and smallest number in a given list.
4. Write a Python program to find the factorial of a given number.
5. Write a Python program to find the second largest number in a given list.
6. Write a Python program to check if a given number is prime or not.
7. Write a Python program to reverse a given string.
8. Write a Python program to find the length of the longest consecutive sequence of a given list of integers.
9. Write a Python program to check if a given number is Armstrong number or not.
10. Write a Python program to find the common elements between two lists.
11. Write a Python program to sort a given list of integers in ascending order.
12. Write a Python program to count the frequency of each element in a given list.
13. Write a Python program to find the sum of digits of a given number.
14. Write a Python program to check if a given string contains only alphabets.
15. Write a Python program to find the intersection of two given lists.
16. Write a Python program to find the GCD (Greatest Common Divisor) of two given numbers.
17. Write a Python program to check if a given year is a leap year or not.
18. Write a Python program to find the sum of all even numbers in a given list.
19. Write a Python program to find the third largest number in a given list.
20. Write a Python program to convert a given list of strings to a dictionary where the strings are keys and their lengths are values.
21. Write a Python program to find the median of a given list of numbers.
22. Write a Python program to check if a given number is a perfect square or not.
23. Write a Python program to find the sum of all prime numbers in a given range.
24. Write a Python program to remove duplicates from a given list.
25. Write a Python program to find the largest palindrome number made from the product of two 3-digit numbers.
26. Write a Python program to find the sum of all odd numbers in a given list.
27. Write a Python program to check if a given string is an anagram of another string.
28. Write a Python program to find the sum of all the multiples of 3 or 5 below a given number.
29. Write a Python program to check if a given number is a perfect number or not.
30. Write a Python program to find the number of vowels and consonants in a given string.
31. Write a Python program to sort a given list of strings based on their lengths.
32. Write a Python program to find the sum of all elements in a given 2D list.
33. Write a Python program to check if a given number is a perfect power of 2 or not.
34. Write a Python program to find the second smallest element in a given list.
35. Write a Python program to find the number of occurrences of a given element in a given list.
36. Write a Python program to reverse the words in a given sentence.
37. Write a Python program to find the common elements among multiple lists.
38. Write a Python program to convert a given list of integers into its corresponding binary representation.
39. Write a Python program to check if a given string is a valid palindrome ignoring spaces and punctuation.
40. Write a Python program to find the sum of all elements in a given array.
41. Write a Python program to find the greatest common divisor (GCD) of three given numbers.
42. Write a Python program to sort a given list of tuples based on the second element in each tuple.
43. Write a Python program to find the sum of all odd-indexed elements in a given list.
44. Write a Python program to count the number of digits in a given number.
45. Write a Python program to find the largest sum of contiguous subarray in a given list of integers.
46. Write a Python program to check if a given string is a valid email address or not.
47. Write a Python program to find the smallest missing positive number in a given list.
48. Write a Python program to find the largest prime factor of a given number.
49. Write a Python program to find the sum of all elements in a given dictionary.
50. Write a Python program to check if a given string is a pangram or not.
51. Write a Python program to find the length of the longest common prefix in a given list of strings.
52. Write a Python program to find the number of trailing zeros in the factorial of a given number.
53. Write a Python program to check if a given number is a palindrome or not.
54. Write a Python program to implement the insertion sort algorithm on a given list of integers.
55. Write a Python program to find the maximum difference between any two elements in a given list.
56. Write a Python program to check if a given string is a valid IPv4 address or not.
