0

Completed

0%

Progress

0

Starred

01

What is Python and why is it widely used?

beginner#Basics
02

What are the key features of Python?

beginner#Basics
03

How do you install Python and set up the development environment?

beginner#Setup
04

How do you run a Python program?

beginner#Setup
05

What are variables in Python and how do you declare them?

beginner#Variables
06

What are the built-in data types in Python?

beginner#Data Types
07

How do numbers work in Python? (int, float, complex)

beginner#Numbers
08

How do strings work in Python?

beginner#Strings
09

What are the most important Python string methods?

beginner#Strings
10

What are lists in Python and how do you use them?

beginner#Lists
11

What are tuples in Python and when should you use them?

beginner#Tuples
12

What are sets in Python and how do you use them?

beginner#Sets
13

What are dictionaries in Python and how do you use them?

beginner#Dictionaries
14

How does type conversion work in Python?

beginner#Type Conversion
15

What are the different types of operators in Python?

beginner#Operators
16

How do conditional statements work in Python?

beginner#Conditional Statements
17

How do for loops and while loops work in Python?

beginner#Loops
18

How do break, continue, and pass work in Python loops?

beginner#Loops
19

How do you define and call functions in Python?

beginner#Functions
20

What are function arguments in Python? (positional, keyword, default, *args, **kwargs)

beginner#Functions
21

How does the return statement work in Python functions?

beginner#Functions
22

What is variable scope in Python? (local, global, LEGB rule)

beginner#Scope
23

What are modules in Python and how do you use them?

beginner#Modules
24

What are packages in Python and how are they structured?

beginner#Packages
25

How do input and output work in Python?

beginner#Input and Output
26

How do you read and write files in Python?

beginner#File Handling
27

How does exception handling work in Python?

beginner#Exception Handling
28

What are list comprehensions in Python and how do you use them?

beginner#List Comprehensions
29

What is Object-Oriented Programming (OOP) in Python?

beginner#OOP
30

How do you define and use classes in Python?

beginner#Classes
31

What are objects in Python and how do they work?

beginner#Objects
32

How does string formatting work in Python? (%, .format(), f-strings)

beginner#Strings
33

What are the key list methods in Python?

beginner#Lists
34

What are advanced dictionary operations in Python?

beginner#Dictionaries
35

What are lambda functions in Python?

beginner#Functions
36

How does inheritance work in Python?

beginner#OOP
37

What are special/dunder methods in Python classes?

beginner#OOP
38

What are Python's built-in functions and how do you use them?

beginner#Basics
39

What is the difference between mutable and immutable types in Python?

beginner#Data Types
40

How do you use the range() function effectively in Python?

beginner#Loops
41

How do you work with multiline strings and raw strings in Python?

beginner#Strings
42

How does Python handle variable assignment and memory references?

beginner#Variables
43

How does Python's match statement (structural pattern matching) work?

beginner#Conditionals
44

What are decorators in Python and how do they work?

beginner#Functions
45

What is polymorphism in Python and how is it implemented?

beginner#OOP
46

How do you handle file paths cross-platform with pathlib in Python?

beginner#File Handling
47

How do you create and raise custom exceptions in Python?

beginner#Exception Handling
48

What are some essential Python standard library modules?

beginner#Modules
49

What are properties in Python classes and how do you use them?

beginner#OOP
50

What is the difference between Python 2 and Python 3?

beginner#Basics
51

What are generators and generator expressions in Python?

beginner#Functions
52

How do you use dictionary and set comprehensions in Python?

beginner#List Comprehensions
53

What is encapsulation and how is it implemented in Python?

beginner#OOP
54

What are type hints and annotations in Python?

beginner#Basics
55

What are closures in Python?

beginner#Functions
56

How do Python functions work internally, and what is the difference between parameters and arguments?

intermediate#Functions Deep Dive
57

What are *args and **kwargs and how does Python unpack them during a function call?

intermediate#Functions Deep Dive
58

What are lambda functions in Python, when should you use them, and what are their limitations?

intermediate#Lambda Functions
59

What is a closure in Python and how does it capture variables from the enclosing scope?

intermediate#Closures
60

How do Python decorators work internally, and how do you write a decorator that preserves the wrapped function's metadata?

intermediate#Decorators
61

What are Python generators, how does `yield` work, and when should you use them over lists?

intermediate#Generators
62

What is the iterator protocol in Python and how do you implement a custom iterator?

intermediate#Iterators
63

How do list, dict, set, and generator comprehensions work, and what are their performance differences?

intermediate#Comprehensions
64

What is a context manager in Python and how do you implement one using both a class and `contextlib`?

intermediate#Context Managers
65

How does Python's exception handling work, and what are best practices for raising and catching exceptions?

intermediate#Exception Handling
66

What are the four pillars of OOP in Python and how does Python implement each?

intermediate#OOP Principles
67

How does Python's multiple inheritance and MRO work, and what is the diamond problem?

intermediate#Inheritance
68

What are Python magic methods (dunder methods) and how do you implement them to make custom objects behave like built-ins?

intermediate#Magic Methods
69

How do Python dataclasses work and what advantages do they offer over plain classes?

intermediate#Dataclasses
70

What are NamedTuples in Python and how do they differ from dataclasses and plain tuples?

intermediate#Named Tuples
71

How does Python's import system work, and what is the difference between packages, modules, and the `__init__.py` file?

intermediate#Modules and Packages
72

Why do Python virtual environments exist, how do they work internally, and what are modern tools for managing them?

intermediate#Virtual Environments
73

How do Python type hints work, what is the role of `mypy`, and what are the most important typing constructs?

intermediate#Type Hints
74

What are the key data structures in `collections` module and when should you use each?

intermediate#Python Collections
75

How does Python's `re` module work, and what are the most important regex patterns and functions?

intermediate#Regex
76

How does Python handle JSON serialization and deserialization, including custom objects?

intermediate#JSON Handling
77

How do you read and write CSV files in Python correctly, handling edge cases like quoted fields and different dialects?

intermediate#CSV Handling
78

How does Python's logging module work, and what is the correct way to set up structured logging for production?

intermediate#Logging
79

How do you write effective unit tests in Python using `pytest`, and what are key testing patterns?

intermediate#Testing Basics
80

What is the difference between concurrency and parallelism in Python, and when does the GIL matter?

intermediate#Concurrency Basics
81

How does Python threading work, what are race conditions, and how do you synchronize threads safely?

intermediate#Threading
82

How does Python multiprocessing work, and how do you share data between processes safely?

intermediate#Multiprocessing
83

How does Python asyncio work, and how do you write async code correctly using `async/await`?

intermediate#Asyncio Basics
84

How does polymorphism work in Python, and what is the difference between duck typing and explicit interface checking?

intermediate#Polymorphism
85

How does Python implement encapsulation, and what are the conventions for private and protected attributes?

intermediate#Encapsulation
86

How do you implement abstraction in Python using abstract base classes (ABCs)?

intermediate#Abstraction
87

What are first-class functions in Python and how are they used in functional programming patterns?

intermediate#Functions Deep Dive
88

What is `yield from` in Python and how does it simplify generator delegation?

intermediate#Generators
89

How do you create class-based decorators in Python and when are they preferable to function-based ones?

intermediate#Decorators
90

How does `contextlib.ExitStack` work and when should you use it?

intermediate#Context Managers
91

What are TypeVar, Generic, and Protocol in Python and how do they enable generic programming?

intermediate#Type Hints
92

How do you structure a Python project for distribution using `pyproject.toml` and how does package discovery work?

intermediate#Modules and Packages
93

What is exception chaining in Python (`raise X from Y`) and how does it preserve error context?

intermediate#Exception Handling
94

How do you use `unittest.mock` to mock dependencies and test in isolation?

intermediate#Testing Basics
95

How do you handle exceptions in asyncio tasks and what is the difference between `gather` and `TaskGroup`?

intermediate#Asyncio Basics
96

What are regex groups, named groups, lookaheads, and lookbehinds, and how do you use them in Python?

intermediate#Regex
97

How do you use `logging.config` to configure logging from a file or dictionary in Python?

intermediate#Logging
98

How does Python's `heapq` module work and what problems does it solve efficiently?

intermediate#Python Collections
99

What is `concurrent.futures` and how does it provide a high-level interface for threading and multiprocessing?

intermediate#Concurrency Basics
100

What is `__post_init__` in Python dataclasses and how do you use it for validation and computed fields?

intermediate#Dataclasses
101

How do you build a custom JSON encoder and decoder for Python objects?

intermediate#JSON Handling
102

How does `itertools` work and what are the most useful combinatorial and infinite iterators?

intermediate#Iterators
103

What is test-driven development (TDD) and how do you apply the red-green-refactor cycle in Python?

intermediate#Testing Basics
104

What is `functools.lru_cache` and how does memoization improve Python performance?

intermediate#Python Collections
105

What are `TypedDict`, `Literal`, and `Final` in Python typing and when do you use each?

intermediate#Type Hints
106

How do you use `pandas` for advanced CSV processing, and what are common pitfalls with data types?

intermediate#CSV Handling
107

What is the `threading.Event` and `threading.Condition` and how do they coordinate threads?

intermediate#Threading
108

What is CPython and how does its internal architecture work from source code to execution?

advanced#Python Internals
109

How does the Python interpreter execute bytecode, and what is the role of the evaluation loop in ceval.c?

advanced#Python Interpreter
110

How does Python compile source code to bytecode, and how can you inspect and manipulate it?

advanced#Bytecode
111

How does CPython manage memory allocation, and what is the role of pymalloc?

advanced#Memory Management
112

How does Python's reference counting work, and what are its limitations with cyclic references?

advanced#Reference Counting
113

How does Python's cyclic garbage collector work, and how should you tune it for production?

advanced#Garbage Collection
114

What is the Global Interpreter Lock (GIL), why does it exist, and what are strategies to work around it?

advanced#GIL
115

How does Python's data model work, and what is the role of dunder methods in the object system?

advanced#Python Object Model
116

What are metaclasses in Python, how do they work internally, and when should you use them?

advanced#Metaclasses
117

How does Python's descriptor protocol work, and how are descriptors used to implement properties, classmethods, and staticmethods?

advanced#Descriptors
118

How do advanced Python decorators work, including class-based decorators, decorator factories, and decorator stacking?

advanced#Advanced Decorators
119

How does Python's asyncio event loop work internally, and what happens when you await a coroutine?

advanced#Asyncio Internals
120

How do you implement a custom asyncio event loop, and when would you need to replace the default one?

advanced#Event Loop
121

What are Python's concurrency models (threading, multiprocessing, asyncio, concurrent.futures), and how do you choose between them?

advanced#Concurrency Models
122

How does Python's threading module work internally, and what are thread-safety mechanisms beyond the GIL?

advanced#Threading Internals
123

How does Python's multiprocessing module work, and what are the best strategies for inter-process communication?

advanced#Multiprocessing Internals
124

What are the most effective Python performance optimization techniques, and how do you identify bottlenecks?

advanced#Performance Optimization
125

How do you effectively profile Python applications in development and production environments?

advanced#Profiling
126

How do you diagnose and fix Python memory leaks in production applications?

advanced#Memory Profiling
127

How do Python generators work internally, and what is the difference between generator functions, generator expressions, and the send/throw/close protocol?

advanced#Generators Internals
128

How do Python context managers work internally, and how do you implement advanced context managers with error handling?

advanced#Context Managers Internals
129

How does Python packaging work, and what are best practices for creating production-ready packages?

advanced#Packaging and Distribution
130

How do you write CPython C extensions, and what are the performance and safety considerations?

advanced#C Extensions
131

What are the main Python security vulnerabilities and how do you mitigate them in production?

advanced#Python Security
132

How are classic design patterns implemented in Python, leveraging its dynamic features?

advanced#Design Patterns
133

How do you implement Clean Architecture in Python, and what are the benefits for large-scale applications?

advanced#Clean Architecture
134

How do you design and scale Python web applications for high traffic?

advanced#Scalable Python Applications
135

How do you achieve near-native performance in Python using NumPy, Cython, Numba, and Rust extensions?

advanced#High-Performance Python
136

How does Python's import system work, and how can you customize it with custom finders and loaders?

advanced#Python Internals
137

How does Python's `__slots__` work internally, and what are the trade-offs of using it?

advanced#Python Internals
138

How does Python's string interning work, and when does it affect program behavior?

advanced#Python Internals