Skip to main content
The built-in tuple type. Example tuple expressions:
Accessing elements is possible using indexing (starts from 0):
Lists support the + operator to concatenate two tuples. Example:
Similar to lists, tuples support slice operations:
Tuples are immutable, therefore x[1] = "a" is not supported.