D
Dicread
InícioDicionárioTtuple

Nota: A tradução desta entrada está atualmente em revisão de qualidade, portanto parte do conteúdo é exibida temporariamente apenas em inglês.

Este verbete ainda não foi traduzido para o seu idioma, portanto o original é exibido abaixo.

tuple

tuple
Noun
pl: tuples

This term is primarily used in technical registers, specifically within mathematics, computer science, and database management. It describes a fixed-size collection of elements where the order of the items is significant. In programming, it often contrasts with a list or an array by being immutable, meaning its contents cannot be changed after creation.

In the context of relational databases, a tuple is the formal term for a row or record. While a table is a set of tuples, each individual tuple represents a single entity or instance of the data structure defined by the table's schema.

Meanings

Nountuple

A finite ordered list of elements, typically used in mathematics and computer science to represent a single record or a data structure.

The function returns a tuple containing the coordinates of the point.

Nountuple

A sequence of n elements, where n is a non-negative integer, often referred to as an n-tuple.

In relational database theory, a tuple represents a single row in a table.

Examples

You can use a tuple to store a fixed set of values that should not change.

Office

Wait, did you define this as a list or a tuple?

Wait, did you define this as a list or a tuple?

Office

The API returns a 3-tuple consisting of a status code, a message, and a timestamp.

The API returns a 3-tuple consisting of a status code, a message, and a timestamp.

Business

I need to unpack this tuple into three separate variables.

I need to unpack this tuple into three separate variables.

Office

A tuple is immutable, meaning you cannot add or remove elements after it is created.

A tuple is immutable, meaning you cannot add or remove elements after it is created.

School Life

The database query returns each record as a tuple of strings.

The database query returns each record as a tuple of strings.

Office

Let's represent the player position as a 2-tuple of x and y coordinates.

Fantasy

I wonder if using a named tuple would make the code more readable.

I wonder if using a named tuple would make the code more readable.

The function expects a tuple of integers as its primary argument.

The function expects a tuple of integers as its primary argument.

School Life

Related Words

Última atualização: May 2026Reportar um erro