0% found this document useful (0 votes)
3 views30 pages

Python 100 Question

The document provides a comprehensive list of over 100 Python practice questions organized by difficulty and topic, including basics, input and operators, control structures, loops, patterns, data structures, functions, object-oriented programming, file handling, and exceptions. It encourages users to attempt solving the questions independently before checking solutions. Additionally, it offers options for further learning, including complete solutions, projects, or a PDF of notes and questions.

Uploaded by

satyamanand638
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views30 pages

Python 100 Question

The document provides a comprehensive list of over 100 Python practice questions organized by difficulty and topic, including basics, input and operators, control structures, loops, patterns, data structures, functions, object-oriented programming, file handling, and exceptions. It encourages users to attempt solving the questions independently before checking solutions. Additionally, it offers options for further learning, including complete solutions, projects, or a PDF of notes and questions.

Uploaded by

satyamanand638
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Perfect choice👍

Ye lo OPTION 2: 100+ PRACTICE


QUESTIONS (WITH LEVEL-WISE

📌
STRUCTURE)
Questions aise banaye gaye
hain ki tumhari thinking + coding
dono strong ho.

---

🐍 PYTHON PRACTICE
QUESTIONS

📘 (SCRATCH → ADVANCED)
✍️
> Rule:


Pehle khud try karo
Solution tabhi dekho jab bilkul
na bane

---

🔰 SECTION 1: BASICS (Very


Easy → Easy)

1. Python me "Hello World" print


karo
2. 2 numbers ka sum print karo

3. User se naam lo aur print karo

4. Square of a number

5. Cube of a number

6. Celsius to Fahrenheit convert


karo
7. Area of rectangle

8. Simple interest calculate karo

9. Swap two numbers (temporary


variable)

10. Swap two numbers (without


temp variable)
---

🔰 SECTION 2: INPUT +
OPERATORS

11. 2 numbers ka addition,


subtraction, multiplication, division

12. Number even ya odd check


karo

13. Number positive, negative ya


zero
14. Greatest of 2 numbers

15. Greatest of 3 numbers

16. Number divisible by 5 ya nahi

17. Marks input lo → pass/fail

18. Percentage calculate karo


19. Voting eligibility program

20. Character vowel hai ya


consonant

---

🔰 SECTION 3: IF–ELSE (LOGIC


BUILDING)

21. Grade system (A/B/C/Fail)


22. Leap year check

23. Electricity bill calculation

24. Salary bonus program

25. Age group category


(child/teen/adult)

26. Triangle valid hai ya nahi


27. Calculator using if–elif

28. ATM withdrawal logic

29. Login system


(username/password)

30. Shop discount system


---

🔰 SECTION 4: LOOPS
(IMPORTANT)

31. 1 to 10 print karo

32. 1 to 100 even numbers

33. Sum of first 10 natural


numbers
34. Table of a number

35. Factorial using loop

36. Reverse a number

37. Count digits in number

38. Palindrome number

39. Prime number check


40. Fibonacci series

---

🔰 SECTION 5: PATTERN
PROGRAMS

41.

*
*
*
*

42.

*
**
***
****

43.

1
12
123
1234
44.

****
***
**
*

45.

*
**
***
****
---

🔰 SECTION 6: LIST
46. List me 5 numbers store karo

47. Largest element in list

48. Smallest element

49. Sum of list elements


50. Count even numbers

51. Reverse list

52. Sort list

53. Duplicate remove karo

54. List me search karo


55. List comprehension se square
list

---

🔰 SECTION 7: TUPLE, SET,


DICTIONARY

56. Tuple me subjects store karo

57. Tuple ka max element


58. Set se duplicates remove karo

59. Union of two sets

60. Intersection of sets

61. Dictionary me student marks


store karo

62. Dictionary se topper find karo


63. Count frequency of words

64. Dictionary me key exist karti


hai ya nahi

65. List of dictionaries banao

---

🔰 SECTION 8: FUNCTIONS
66. Function se sum return karo

67. Even/odd function

68. Factorial using function

69. Table using function

70. Recursive factorial


71. Lambda se square

72. Default argument function

73. Keyword argument function

74. Function se max number

75. Calculator using functions


---

🔰 SECTION 9: OOP (VERY


IMPORTANT)

76. Student class banao

77. Bank account class

78. Constructor use karo

79. Inheritance example


80. Polymorphism example

81. Encapsulation demo

82. Library management mini class

83. Employee salary system

84. Class with list inside


85. Object list banao

---

🔰 SECTION 10: FILE HANDLING


86. File me text write karo

87. File se text read karo


88. Append data in file

89. Count lines in file

90. Count words in file

91. Student data file me save

92. File error handle karo

93. with statement use karo


94. Marks report file

95. Log file create karo

---

🔰 SECTION 11: EXCEPTION &


ADVANCED

96. Divide by zero handle karo


97. Wrong input handle karo

98. Custom exception (basic)

99. List comprehension use karo

100. Dictionary comprehension


use karo
---

🏆 BONUS CHALLENGE
(Optional)

101. Mini project: Student


Management System

102. Mini project: Bank App

103. Mini project: Quiz App


---

🎯 Ab next kya?
Tum 3 tareeke se aage badh sakte
ho:

1️⃣ In sab questions ke COMPLETE


SOLUTIONS
2️⃣ Beginner → Advanced
PROJECTS with code
3️⃣ Pure Python notes + questions
ka PDF
👉 Bas number likho (1 / 2 / 3)
dunga 🚀
Main turant next step start kar

You might also like