1. Write a program to check whether a number is even or odd.
2. Write a program to find the largest of three numbers.
3. Write a program to calculate the factorial of a number.
4. Write a program to check if a string is a palindrome.
5. Write a program to count the number of vowels in a string.
6. Write a program to reverse a given string.
7. Write a program to find the sum of all digits in a number.
8. Write a program to print the Fibonacci series up to n terms.
9. Write a program to check if a number is prime.
10. Write a program to find the GCD of two numbers.
11. Write a program to convert Celsius to Fahrenheit.
12. Write a program to find the second largest number in a list.
13. Write a program to check if a year is a leap year.
14. Write a program to generate a random number between 1 and 100.
15. Write a program to remove duplicates from a list.
16. Write a program to find the length of a string without using the len() function.
17. Write a program to count the occurrences of a character in a string.
18. Write a program to find the minimum and maximum in a list.
19. Write a program to sort a list of numbers in ascending order.
20. Write a program to merge two lists.
21. Write a program to find the common elements between two lists.
22. Write a program to find the intersection of two sets.
23. Write a program to calculate the sum of even numbers from 1 to n.
24. Write a program to check if two strings are anagrams.
25. Write a program to calculate the square of a number using a function.
26. Write a program to find the largest even number in a list.
27. Write a program to print the multiplication table of a number.
28. Write a program to count how many times a specific digit appears in a number.
29. Write a program to find all prime numbers up to n.
30. Write a program to find the sum of the first n natural numbers.
31. Write a program to print a diamond pattern of stars.
32. Write a program to find the smallest divisor of a number greater than 1.
33. Write a program to check if a number is a perfect number.
34. Write a program to find the common characters in two strings.
35. Write a program to remove all whitespace from a string.
36. Write a program to check if a string contains only digits.
37. Write a program to count the number of words in a sentence.
38. Write a program to find the largest word in a sentence.
39. Write a program to create a list of squares of numbers from 1 to n.
40. Write a program to calculate the sum of the digits of a number until it becomes a single digit.