100 Python Practice Questions
Easy (1-60) and Medium (61-100)
1. Print Hello World.
2. Take name input and print welcome message.
3. Add two numbers.
4. Subtract two numbers.
5. Multiply two numbers.
6. Divide two numbers.
7. Find square of a number.
8. Find cube of a number.
9. Convert Celsius to Fahrenheit.
10. Convert Fahrenheit to Celsius.
11. Swap two numbers using third variable.
12. Swap two numbers without third variable.
13. Find area of rectangle.
14. Find perimeter of rectangle.
15. Find area of circle.
16. Check even or odd.
17. Check positive, negative or zero.
18. Find largest of two numbers.
19. Find largest of three numbers.
20. Check divisibility by 5.
21. Check divisibility by 3 and 5.
22. Calculate simple interest.
23. Calculate compound interest.
24. Check leap year.
25. Check voting eligibility.
26. Check vowel or consonant.
27. Create grade calculator.
28. Check multiple of 7.
29. Check 2-digit number.
30. Check 3-digit number.
31. Print 1 to 10.
32. Print 10 to 1.
33. Print even numbers 1-100.
34. Print odd numbers 1-100.
35. Sum first N natural numbers.
36. Factorial of number.
37. Multiplication table.
38. Count digits in number.
39. Reverse a number.
40. Sum of digits.
41. Product of digits.
42. Count vowels in string.
43. Count consonants in string.
44. Reverse string.
45. Convert string to uppercase.
46. Convert string to lowercase.
47. Check palindrome string.
48. Count character occurrences.
49. Remove spaces from string.
50. Replace vowels with *.
51. Find string length without len().
52. Find largest item in list.
53. Find smallest item in list.
54. Calculate list sum.
55. Calculate list average.
56. Find maximum in tuple.
57. Convert list to tuple.
58. Create dictionary and print keys.
59. Create dictionary and print values.
60. Count elements in a list.
61. Check prime number.
62. Print primes up to N.
63. Check Armstrong number.
64. Print Armstrong numbers 1-1000.
65. Check palindrome number.
66. Find GCD of two numbers.
67. Find LCM of two numbers.
68. Generate Fibonacci series.
69. Find factors of a number.
70. Check perfect number.
71. Print right-angle star pattern.
72. Print inverted star pattern.
73. Print pyramid pattern.
74. Print number triangle pattern.
75. Print Floyd's triangle.
76. Remove duplicates from list.
77. Find second largest element in list.
78. Count frequency of list elements.
79. Sort list without sort().
80. Merge two lists.
81. Find common elements in two lists.
82. Write prime-check function.
83. Write recursive factorial function.
84. Write function to reverse string.
85. Write function to count vowels.
86. Handle divide-by-zero using try-except.
87. Read data from text file.
88. Write data to text file.
89. Count words in a file.
90. Create student dictionary and display details.
91. Create simple calculator using functions.
92. Create number guessing game.
93. Create rock-paper-scissors game.
94. Create password generator.
95. Create contact book using dictionary.
96. Create ATM menu program.
97. Create to-do list application.
98. Create quiz application.
99. Create library management mini project.
100. Create student management system.