0

Are Tuples basically Lists that are unable to change?

2nd Jun 2020, 11:10 AM
Ali Rezaei
Ali Rezaei - avatar
2 odpowiedzi
+ 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