100 Python Practice Program Questions
Basic Programs
1. Print Hello World
2. Add two numbers
3. Subtract two numbers
4. Multiply two numbers
5. Divide two numbers
6. Find the remainder
7. Swap two numbers
8. Find largest of two
9. Find largest of three
10. Even or odd
11. Positive negative or zero
12. Square of a number
13. Cube of a number
14. Square root
15. Celsius to Fahrenheit
16. Fahrenheit to Celsius
17. Area of rectangle
18. Area of circle
19. Perimeter of rectangle
20. Simple interest
Conditional Statements
21. Leap year
22. Greatest of three
23. Vowel or consonant
24. Divisible by 5 and 11
25. Divisible by 2 and 3
26. Grade from marks
27. Eligible to vote
28. Multiple of 7
29. Smallest of three
30. Palindrome number
31. Armstrong number
32. Perfect number
33. Prime number
34. Neon number
35. Spy number
36. Duck number
37. Uppercase or lowercase
38. Day of week (1-7)
39. Simple calculator using if-elif
40. Triangle validity
Loops
41. Print 1 to 10
42. Print 10 to 1
43. Even numbers 1-100
44. Odd numbers 1-100
45. Sum of first N natural numbers
46. Factorial
47. Multiplication table
48. Reverse a number
49. Count digits
50. Sum of digits
51. Product of digits
52. Fibonacci series
53. Prime numbers 1-100
54. Armstrong numbers 1-1000
55. First N prime numbers
56. GCD
57. LCM
58. Power of a number
59. Numbers divisible by 3 and 5
60. Separate sum of even and odd
Strings
61. Length of string
62. Reverse string
63. Palindrome string
64. Count vowels
65. Count consonants
66. Count uppercase/lowercase
67. Count digits
68. Remove spaces
69. Replace word
70. Uppercase
71. Lowercase
72. Count character occurrence
73. Anagram
74. Duplicate characters
75. Print each character
Lists, Tuples, Dictionaries & Sets
76. Largest in list
77. Smallest in list
78. Sum of list
79. Average of list
80. Remove duplicates
81. Sort ascending
82. Sort descending
83. Merge lists
84. Frequency of elements
85. Search element
86. Create/access tuple
87. Count tuple elements
88. Create/update dictionary
89. Print dictionary keys/values
90. Union and intersection of sets
Functions & File Handling
91. Function to add numbers
92. Function for factorial
93. Function to check prime
94. Recursive factorial
95. Read text file
96. Write text file
97. Copy file
98. Count lines
99. Count words
100. Student management system