Store ordered items, including duplicates, without adding, removing or replacing them after creation. A nested list or dictionary can still change. In conditions, an empty tuple is false and a non-empty tuple is true.
Syntax
tuple(iterable=(), /)
(value1, value2, ...)Returns
Example
offset = (0, 1)
x = offset[0]
y = offset[1]
if 1 in offset:
text("offset ready")