filmov
tv
Python IQ - #1. #viralvideo #viralshorts #shorts #trending #trendingshorts #ytshorts #coding

Показать описание
Difference between list and tuple
1.Tuples are immutable objects and lists are mutable objects.
2.Once defined, tuples have a fixed length and lists have a dynamic length.
3.Tuples use less memory and are faster to access than to lists.
4.Tuple syntax uses round brackets or parenthesis, and list syntax uses square brackets.
1.Tuples are immutable objects and lists are mutable objects.
2.Once defined, tuples have a fixed length and lists have a dynamic length.
3.Tuples use less memory and are faster to access than to lists.
4.Tuple syntax uses round brackets or parenthesis, and list syntax uses square brackets.