+ 7
what is the difference between list and tuples in Python?
Pyton
6 Respuestas
+ 22
This question has been asked many times, please use the search bar next time.
https://www.sololearn.com/post/10362/?ref=app
https://www.sololearn.com/discuss/248227/?ref=app
https://www.sololearn.com/discuss/1521094/?ref=app
https://www.sololearn.com/discuss/1002093/?ref=app
https://www.sololearn.com/discuss/157953/?ref=app
https://www.sololearn.com/discuss/1025225/?ref=app
https://www.sololearn.com/discuss/1897083/?ref=app
https://www.sololearn.com/discuss/1462285/?ref=app
https://www.sololearn.com/discuss/118783/?ref=app
https://www.sololearn.com/discuss/1924834/?ref=app
https://www.sololearn.com/discuss/2371547/?ref=app
+ 6
Lists are mutable objects which means you can modify a list object after it has been created. Tuples, on the other hand, are immutable objects which means you can't modify a tuple object after it's been created.
+ 2
You can modify a list unlike a tuples. You can't modify tuples. That's all.
+ 2
Lists are Mutable whereas Tuples are Immutable
+ 1
Tuples can't be changed
0
lists can be changed and tuples cant