922 B
922 B
Tuples
A tuple is an ordered and immutable collection of elements in Python. Unlike lists, tuples cannot be modified after creation, making them useful for storing fixed data such as coordinates, configuration values, or records that should remain unchanged. Tuples support indexing, iteration, and unpacking. They can be used as dictionary keys only if all their elements are hashable, and can also group multiple values returned from a function.
Visit the following resources to learn more: