+3 votes
in Class 12 by kratos

What is the difference between a tuple and a list?

1 Answer

+4 votes
by kratos
 
Best answer

A tuple is immutable whereas a list is mutable.

A tuple cannot be changed whereas a list can be changed internally.

A tuple uses parentheses (()) whereas a list uses square brackets ([]).

tuple initialization: a = (2, 4, 5)

list initialization: a = [2, 4, 5]

...