Tuple
Domain: Programming Fundamentals
🎯 Motivation
Some data shouldn’t change after creation - coordinates, dates, RGB colour values. Tuples are immutable lists.
đź“‹ Concrete Example
rgb = (255, 128, 0) for orange. You can’t change rgb[0] - it’s locked. But it’s faster and safer than a list.
đź”— Analogy
A sealed envelope - once you seal it, the contents can’t be changed. You can read what’s inside, but not swap it.