How to recognize the difference between lists and tuples in Python

preview_player
Показать описание


Code from video:
*****************
company = ['julia', 'erick', 'dillon']
my_tuple = tuple(company)
my_tuple
company[1]
my_tuple[1]
my_tuple[1] = 'eric'

Connect with us!
*****************
Рекомендации по теме
Комментарии
Автор

tuples are immutable means that they cannot be changed or edited but in lists we can change data inside that list but how, by changing text or by changing position can some tell??

joginderchauhan
Автор

This video does not explain when to use Tuples or Lists, hence nobody will understand the difference.

IONYVDFC