Pregunta de entrevista de LTM Limited

What is the difference between list and tuple?

Respuestas de entrevistas

Anónimo

12 nov 2024

- **List**: A mutable, ordered collection of elements in Python, defined with square brackets `[]`. - **Tuple**: An immutable, ordered collection of elements in Python, defined with parentheses `()`.

Anónimo

8 oct 2024

List is mutable and tuplw is immutable where list is used for entering name in a column and tuple is used to have id for each person which is didtinct for everyone.

1