Python Programming, Tuples

Published: 17 March 2021
on channel: Quick Programming Concepts
545
17

#shorts

In this quick video, Python tuples are demonstrated. This video is intended for those who are new to Python programming.

Tuples are similar to lists, but cannot be changed once created. Another word for not being able to be changed that you may hear, is that they are immutable.

Tuples are defined with parentheses.

Example:
example_tuple = ('this', 'is', 'an', 'example')