- 2

Difference between tuple and list

6th Jan 2017, 4:53 PM
Dhana sekar
Dhana sekar - avatar
4 ответов
+ 3
tuple = (something, something else) list = [] lists can be changed tuples not...
6th Jan 2017, 10:40 PM
Mark
Mark - avatar
+ 2
someTuple = (1,2) someList = [1,2] tuple is immutable while list is mutable.... you may want to check what is mutable...
6th Jan 2017, 5:03 PM
Sharique Ansari
Sharique Ansari - avatar
+ 2
b = [1,2] a = (1,2) b[0] = 3 # [3, 2] a = (1,2) a[0] = 3 # Error, not(3,2)
6th Jan 2017, 5:11 PM
Sharique Ansari
Sharique Ansari - avatar
- 2
say some examples by using tuple and list.
6th Jan 2017, 5:07 PM
Dhana sekar
Dhana sekar - avatar