Python Problem Solving Questions (Easy to Moderate)
1. Write a program to print 'Hello, World!'.
2. Write a program to take a user's name as input and display a greeting message.
3. Write a program to add two numbers entered by the user.
4. Write a program to find the area of a rectangle.
5. Write a program to check whether a number is even or odd.
6. Write a program to find the largest of two numbers.
7. Write a program to swap two variables without using a third variable.
8. Write a program to calculate the square and cube of a number.
9. Write a program to convert Celsius temperature into Fahrenheit.
10. Write a program to check whether a number is positive, negative, or zero.
11. Write a program to print the first 10 natural numbers using a loop.
12. Write a program to find the sum of the first N natural numbers.
13. Write a program to print the multiplication table of a given number.
14. Write a program to calculate the factorial of a number.
15. Write a program to check whether a number is a prime number.
16. Write a program to count the number of digits in an integer.
17. Write a program to reverse a given number.
18. Write a program to check whether a number is a palindrome.
19. Write a program to find the greatest common divisor (GCD) of two numbers.
20. Write a program to generate the Fibonacci series up to N terms.
21. Write a program to count vowels and consonants in a string.
22. Write a program to check whether a string is a palindrome.
23. Write a program to find the frequency of each character in a string.
24. Write a program to remove duplicate elements from a list.
25. Write a program to find the largest and smallest element in a list.
26. Write a program to sort a list without using the built-in sort() method.
27. Write a program to find the second largest number in a list.
28. Write a program to merge two dictionaries into one.
29. Write a program to count the occurrence of each element in a list.
30. Write a program to create a simple calculator using functions (+, -, *, /).