A tuple can be created using parentheses:
filename.python
t = (1, 2, 3)
Or without parentheses:
filename.python
t = 1, 2, 3
For a single-element tuple, I faced the common challenge of forgetting the trailing comma — since (5) is just an integer, but (5,) is a tuple. The limitation here is readability when commas are missed. Alternatives, when immutability is not needed, include lists.
