Python Tuple in Python
Updated on June 2, 2025 | By Learnzy Academy
A tuple in Python is an ordered, immutable collection of elements. It can store multiple items in a single variable, and items can be of different data types such as integers, strings, or even other collections like lists.
Key Features of Tuples:
- Immutable – Once created, the elements of a tuple cannot be changed, added, or removed.
- Ordered – Tuples preserve the order of elements.
- Allows duplicates – Tuples can contain duplicate values.
- Can hold mixed data types – A tuple can include integers, strings, floats, lists, other tuples, etc.
- Faster than lists – Due to immutability, tuples are slightly faster and use less memory than lists.
Tuple Syntax:
Created using parentheses ()
my_tuple = (1, 2, 3)
Click here to download practice questions on
Python Tuple