Question d’entretien chez Virtusa

What are the differences between lists and tuples in Python, and when would you use each? Explain how Python handles memory management and garbage collection. Can you write a Python function to find duplicate elements in a list?