I
Ishwar Rattan
I am a little confused about a list and a tuple.
Both can have dissimilar data-type elements, can be returned
by functions. The only difference that I see is that list is
mutable and tuple is not (of course list have .append() etc.)
What is a possible scenario where one is preferred over the other?
-ishwar
Both can have dissimilar data-type elements, can be returned
by functions. The only difference that I see is that list is
mutable and tuple is not (of course list have .append() etc.)
What is a possible scenario where one is preferred over the other?
-ishwar