+ 5
Is there any reason to use tuple instead of list?
I don't see how tuples can be practical...
3 Respostas
+ 8
Check out the answer starting as follows:
"Tuples are fixed size in nature whereas lists are dynamic.
In other words, a tuple is immutable whereas a list is mutable."
Here:
https://stackoverflow.com/questions/1708510/JUMP_LINK__&&__python__&&__JUMP_LINK-list-vs-tuple-when-to-use-each
+ 1
yes because the strings in tuple is unchangable and in list we can change i think
+ 1
in some cases you might want to not change your orijinal data just want to use it. so using tuples guaranties that your data stay original.