In many places, (1,2,3) (a tuple) and [1,2,3] (a list) can be used interchangeably.
(1,2,3)
[1,2,3]
When should I use one or the other, and why?
The list [1,2,3] is dynamic and flexible but that flexibility comes at a speed cost.
The tuple (1,2,3) is fixed (immutable) and therefore faster.