Pregunta de entrevista de BDO

1. Explain the difference between list, tuple, and set in Python. When would you use each? 2. How does Python handle memory management, and what are garbage collection and reference counting? 3. What are list comprehensions, and how do they improve code readability and efficiency? Provide an example. 4. Describe the difference between @staticmethod and @classmethod decorators. When would you use each? 5. Explain the concept of generators in Python. How do they work, and what are the benefits of using them?