- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Why += Creates a New Tuple in Python 😳 (Object Identity Explained) (Part 3)
Why does += behave differently for tuples and lists in Python?
The memory address changes.
That’s because tuples are immutable.
+= cannot modify a tuple in place.
Instead, Python creates a new object and reassigns the variable.
This video explains:
- Tuple immutability
- Object identity
- Augmented assignment behavior (+=)
- Why lists behave differently
Part 3 of the Python interview mini-series.
#python #pythonprogramming #programming #pythonforbeginners #pythonbasics #codingforbeginners #softwaredevelopment #quant #pythontutorial #pythonbeginner #learnpython #learnpythonprogramming #learnpythonprogrammingforbeginners #learnpythononline #codinginterview #codingconcepts #pymlfinance #quantitativetrading #tuples #pythontricks
Видео Why += Creates a New Tuple in Python 😳 (Object Identity Explained) (Part 3) канала PyMLFinance
The memory address changes.
That’s because tuples are immutable.
+= cannot modify a tuple in place.
Instead, Python creates a new object and reassigns the variable.
This video explains:
- Tuple immutability
- Object identity
- Augmented assignment behavior (+=)
- Why lists behave differently
Part 3 of the Python interview mini-series.
#python #pythonprogramming #programming #pythonforbeginners #pythonbasics #codingforbeginners #softwaredevelopment #quant #pythontutorial #pythonbeginner #learnpython #learnpythonprogramming #learnpythonprogrammingforbeginners #learnpythononline #codinginterview #codingconcepts #pymlfinance #quantitativetrading #tuples #pythontricks
Видео Why += Creates a New Tuple in Python 😳 (Object Identity Explained) (Part 3) канала PyMLFinance
Комментарии отсутствуют
Информация о видео
24 февраля 2026 г. 10:45:39
00:01:03
Другие видео канала





















