4 odpowiedzi
+ 7
+ 12
A list is mutable, whereas a tuple is immutable. This means that a list can be changed, but a tuple cannot.
+ 6
Key points to remember:
The literal syntax of tuples is shown by parentheses () whereas the literal syntax of lists is shown by square brackets [] .Lists has variable length, tuple has fixed length.List has mutable nature, tuple has immutable nature.List has more functionality than the tuple.
https://www.programiz.com/JUMP_LINK__&&__python__&&__JUMP_LINK-programming/list-vs-tuples