0

Are Tuples basically Lists that are unable to change?

2nd Jun 2020, 11:10 AM
Ali Rezaei
Ali Rezaei - avatar
2 Answers
+ 13
The primary difference between aĀ TupleĀ and aĀ ListĀ is thatĀ TuplesĀ are immutable, meaning youĀ cannot changeĀ them, whereasĀ ListsĀ are immutable meaning you canĀ changeĀ them. ... So all the things that you could do with theĀ ListĀ in order to access elements will also work with aĀ Tuple.
2nd Jun 2020, 11:33 AM
šš‚ššŠšš—ššššŽššŽšš™ šŸ¤
šš‚ššŠšš—ššššŽššŽšš™ šŸ¤ - avatar
+ 7
You mentioned: ... whereasĀ ListsĀ are immutable meaning you canĀ changeĀ them. But should be: ... whereasĀ ListsĀ are mutable meaning you canĀ changeĀ them. Could you please change it? Thanks!
2nd Jun 2020, 1:14 PM
Lothar
Lothar - avatar