Definition
The tuple() function creates a tuple object. Items in a tuple cannot be changed or removed.
Syntax
tuple(iterable)
Parameters
| Parameter | Description |
|---|---|
| iterable | Required. A sequence, collection or an iterator object |
Examples
mytuple = tuple(('Ivan', 'Raymond', 'Rich'))
print(mytuple)