1 ответ
+ 2
Lists are mutable(items can be changed after a list has been created).
Tuples are immutable(items can NOT be changed after a tuple has been created).
Example:
# list
my_list = ["Python", "C", "Java"]
my_list[1] = "C++" # valid
# tuple
my_tuple = ("Python", "C", "Java")
my_tuple[2] = "Kotlin" # TypeError: "tuple" object does not support item assignment