A tuple must be created with commas between values, and conventionally the sequence is surrounded by parentheses. Each element is accessed by index, starting with the first element at index 0.
Tuple
A tuple is a sequence of comma separated values that can contain elements of different types.
Source & attribution
Introduction to Python Programming — Tuple basics
OpenStax contributors · OpenStax, Rice University
CC BY 4.0. Text excerpted; whitespace normalised and empty cross-references removed; learning prompts added. No illustrations reproduced.
Source edition: 2024-07-30T19:17:56Z
A note to yourself
Create an account or sign in to keep private notes and saved takas across devices.