2 Réponses
+ 7
list are dynamic so can add items while tuple are fixed so can't add items.
+ 5
Tuples are more efficient for storing data that youre not gonna change, for example coordinates of specific places on a map. Lists, on the other hand, are more useful if you do actually want to change the data inside of them. Also, since tuples are immutable, they can be used as dictionary keys.