Tuples
Learn about the tuple object in Python.
We'll cover the following...
We'll cover the following...
Definition
A tuple consists of two or more values separated by commas and enclosed in parentheses, for example, ("John", 23).
Tuples are useful for keeping a small number of values together as a single unit. For example, you might want to write a function that returns the x-y coordinates of an object, or the largest and smallest values in a list.
...