What is the difference between List and Tuple in Python?
Explanation
Tuple is immutable data type while list is mutable. That means, that tuple cannot be modified after it is defined. List can be freely modified after its definition.
As a result tuple can be used as a key for set / dictionary while list cannot (tuple is hashable while list is not).

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Python
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести