Python Tuples Are Lying! 😳 Append to a ‘Immutable’ Tuple? #learnpython
t = (5, [3,4]); t[1].append(5) → Does this work? 👇 #pythonshorts
Answer: A
Tuples are immutable, but their mutable elements (like the inner list) can be modified.
#PythonTuples #Mutability #CodeParadox #LearnToCode
Видео Python Tuples Are Lying! 😳 Append to a ‘Immutable’ Tuple? #learnpython канала Learning with Himanshu
Answer: A
Tuples are immutable, but their mutable elements (like the inner list) can be modified.
#PythonTuples #Mutability #CodeParadox #LearnToCode
Видео Python Tuples Are Lying! 😳 Append to a ‘Immutable’ Tuple? #learnpython канала Learning with Himanshu
Комментарии отсутствуют
Информация о видео
27 апреля 2025 г. 19:01:18
00:00:30
Другие видео канала