What's the difference between a list and a tuple in Python?
Lists are mutable and use square brackets [1, 2, 3]. Tuples are immutable and use parentheses (1, 2, 3). Tuples are slightly faster and can be used as dictionary keys.