next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
1
Why is it important to use functools.wraps when writing a decorator?
Advanced
2
What is the difference between a class-based decorator and a function-based decorator?
Advanced
3
How does the yield keyword turn a function into a generator, and what happens to the function's state between calls?
Advanced
4
What is the difference between yield and yield from?
Advanced
5
What is a decorator, and how does it use closures to wrap a function's behavior?
Intermediate
6
What is the difference between an iterable and an iterator? What protocol must an object implement to be an iterator?
Intermediate
7
How would you write a decorator that accepts arguments (e.g., @retry(times=3))?
Advanced
8
How would you process a very large file that doesn't fit in memory using generators?
Intermediate
All Topics
1
Fundamentals
0/3 topics · 0%
Basics
Control Flow and Functions
Data Structures
2
Working with data
0/13 topics · 0%
Comprehensions & Functional Programming
Iterators, Generators & Decorators
Object-Oriented Programming
Exception Handling & Debugging
Concurrency & Parallelism
Performance & Optimization
Testing
Security
Modules, Packaging & Environment
Type Hinting & Modern Python
System Design & Architecture with Python
Best Practices & Design Patterns
Edge Cases & Tricky Interview Questions
Share
this topic
Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.