Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
Python

Tuples in Python

Use immutable ordered collections with tuples for fixed groups of values.

Tuples in Python — a practical guide to Python tuples with clear examples you can reuse in real projects.

Python Tutorial Series (22/95). Prefer one article? Read the complete Python tutorial.

Short description

Tuples are like lists but cannot be changed after creation — useful for records and dictionary keys (if hashable).

Tuple example

point = (10, 20)
x, y = point
print(x, y)
print(point[0])

Leave a reply

Your email address will not be published. Required fields are marked *