Python
Updated 02 Sep 2025
2 min read
Understanding Tuples in Python: A Practical Guide
A tuple is an ordered Python collection whose item references cannot be reassigned after creation. Tuples are useful for fixed groups of related values, function return values, dictionary keys when their contents are hashable, and lightweight records. Create Tuples coordinates = (10, 20) colors = ("red", "green", "blue") The comma is what creates a tuple, not the parentheses alone. A one-item tuple therefore needs a trailing comma: