Quick actions

cmd+k|ctrl+k

Navigation

Languages

Tuples

Snippet info

Language

Python

Visibility

public

Author

raulciprian.tudor

Created

2026-01-03T18:01:44.366585Z

Updated

2026-01-03T18:12:30.393931Z

# Tuple
# A tuple is like a list, but we cannot modify them. They are immutable.

my_tuple = (1, 2, 3, 4, 5)
new_tuple = my_tuple[1:2]
print(new_tuple)
INFO