5 ответов
+ 4
It's simple. A tuple always have immutable [That cannot be changed later] items whereas A list always consists mutable items [That can be changed later] and also a tuple uses parenthesis () while the list uses Square brackets[] As, you might have noticed that tuples didn't have append function also Reassigning it's values always gives an error.
25th Jul 2020, 10:27 AM
Arctic Fox
Arctic Fox - avatar
+ 1
List is Mutable And Tuple Is Immutable as we can't change tuple after it has been declared but list can be changed any time
26th Jul 2020, 4:45 AM
Kartikey Kumar
Kartikey Kumar - avatar
0
what is difference between list and tuple in python
25th Jul 2020, 10:18 AM
nagabhushan punyamurthy
nagabhushan punyamurthy - avatar