Important Python Questions
Important Python Questions: Basic Level
1. What is Python / data types?
2. Difference between List / Tuple / Dict / Set.
3. What is use of self in a class?
4. What are Python decorators?
5. What are lambda functions?
6. Difference between @staticmethod, @classmethod, and instance methods?
7. What is a Python generator?
8. Difference between range() and xrange().
9. Difference between ‘is' and '=='?
10. What are Python's mutable and immutable data types?
11. What are the key features of Python?
12. What is a variable?
Ww
wi
13. What is indentation?
14. What is a function?
15. Difference between return and print().
16. What are conditional statements?
17. What are loops in Python?
18. Difference between break, continue and pass?
19. What is a module?
20. What is a package?
21. What is dictionary?
22. What is type casting?
23. What is an error and exception?
wi
24. What are try, except, and finally?
Intermediate Level Questions
Important Python Questions: Intermediate Level
25. What is a class?
26. What is inheritance?
27. What is self in a class?
28. What are decorators?
29. What is _init_()?
30. What is take user input?
31. What is a nested loop?
32. What is recursion?
33. What is slicing?
34. What is List Comprehension?
35. How do you open a file in Python?
36. What modes can you open a file in?
37. What is a docstring?
38. What is a namespace?
39. What is scope in Python?
40. What is global keyword?
41. What is None in Python?
42. What is a Python script?
43. What are Python libraries?
44. What is pip?
45. Difference between append() and extend() in a list?
46. How do you remove items from a list?
47. What is the difference between isinstance() and type()?
48. What is the use of id() function?
49. What is aliasing in Python?
50. What are Python keywords?
51. What is a shallow copy?
52. What is a deep copy?
wi
53. What is the difference between len() and len()-1?
Advanced Level Questions
Important Python Questions: Advanced Level
54. What is method overriding?
55. What is _name__ == '_main_' used for?
56. What is type hinting?
57. What are Python data structures?
58. How to swap two variables in Python?
59. How to handle multiple exceptions at once?
60. How to reverse a list or string?
61. What are f-strings in Python?
62. What is the difference between del list, [Link](), and list = []?
63. What is dict() in Python?
64. What is the use of any() and all() functions?
65. What is the zip() function used for?
66. What are frozen sets?
67. What does the enumerate() function return?
68. How to check memory usage of an object?
69. How to merge two dictionaries?
70. What is @property in Python?
71. What is a callback function?
72. What is an object in Python?
73. What is the purpose of the pass statement?
74. What are keyword-only arguments?
75. What is the use of id() function?