Back Navigation Next Navigation Video 6: Lists Tuples Dictionaries (page 7 of 14)

Tuples are similar to lists. They let us store multiple items in a single object. The primary difference between lists and tuples is that tuples are immutable (non-changeable). We cannot modify single items in a tuple like we can with list. As a result, looping tends to be faster with tuples relative to lists.

If you have data that do not change, storing those data as tuple will guarantee that it remains write-protected.

Tuples are created using parentheses during assignment ().

Tuples