MENU
Question -

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]

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×