Python lists vs. tuples: When should you use each one?

preview_player
Показать описание
Newcomers (and not-so-newcomers) to Python are often surprised and confused by lists vs. tuples. What are the differences? When should you use each one? And should we focus on the mutable vs. immutable distinction, or something else?
Рекомендации по теме
Комментарии
Автор

But list as a bunch of data of same type is just a convention right ? For example, this is allowed in python right ? ["str", 123, ("str", 123)]

VinodMoorkoth
join shbcf.ru