Domanda di colloquio di TCS

What is the difference between a list and a tuple in Python?

Risposta di colloquio

Anonimo

29 lug 2025

I explained that a list is mutable and allows changes, whereas a tuple is immutable. I also mentioned that tuples are generally faster and more memory-efficient than lists.