Pergunta de entrevista da empresa LTIMindtree

What is the difference between list and tuple?

Respostas da entrevista

Sigiloso

12 de nov. de 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 `()`.

Sigiloso

8 de out. de 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