1.

What is the difference between a tuple and a list ?

Answer»

A tuple is immutable i.e. cannot be changed. It can be operated on only. 

But a list is mutable. Changes can be done internally to it. 

tuple initialization: a = (2,4,5) list initialization: a = [2,4,5]



Discussion

No Comment Found