Python tuple() function

Python tuple() function

The tuple() function in Python creates a tuple object.

Syntax

Parameter

Iterable: This parameter represents a sequence, collection or an iterator object.

Return

This function returns a tuple object.

Example 1

Output

Example 2

Output