tuple

[ˈtʌpəl]

tuple Definition

a sequence of elements of different data types, used to group related data together.

Using tuple: Examples

Take a moment to familiarize yourself with how "tuple" can be used in various situations through the following examples!

  • Example

    In Python, tuples are created by enclosing values in parentheses.

  • Example

    A tuple can contain any number of elements, and each element can be of a different type.

  • Example

    Tuples are often used to return multiple values from a function.

tuple Synonyms and Antonyms

Synonyms for tuple

📌

Summary: tuple in Brief

A 'tuple' [ˈtʌpəl] is a sequence of elements of different data types that are used to group related data together. Tuples are often used in programming languages like Python to return multiple values from a function.