#6 Learn about Python dictionaries and difference between list and tuple

Опубликовано: 14 Октябрь 2024
на канале: Python Lessons
497
62

Sometimes people are confused about tuples and lists, due to their similarities, but in fact these two structures are substantially different, so in this tutorial we will show that.

The main differences between lists and tuples are: Lists are enclosed in brackets ([ ]) and their elements and size can be changed, while tuples are enclosed in parentheses (( )) and cannot be updated or changed. Tuples can be thought of as read-only lists.

Text tutorial (page under construction): http://pylessons.com/Python-3-basics-...

Twitter:   / pylessons  
Facebook:   / pylessons