jargonsdev / jargons.dev

A community-driven dictionary that simplifies software, engineering and tech terms for all levels.
https://jargons.dev
GNU General Public License v2.0
24 stars 8 forks source link

Dictionary (Edit Word): Tuple #74

Closed babblebey closed 5 months ago

babblebey commented 5 months ago

Word

Tuple

Updated Meaning/Definition

A tuple is a data structure that is an immutable, or unchangeable, ordered sequence of elements. Because tuples are immutable, their values cannot be modified.

As a general rule, tuples use less memory than a list or array.

Tuples allows for slicing and indexing like lists, but do not have methods for deleting or changing any elements.

Code Example

# creating a tuple 
mySiblings = ('Susan', 'James', 'Bryan')

# accessing an element within a tuple:

mySiblings[2]

Impromvemnet

vercel[bot] commented 5 months ago

@babblebey is attempting to deploy a commit to the Jargons-Dev Team on Vercel.

A member of the Team first needs to authorize it.