Create and Print a Tuple :

thistuple = ("apple", "banana", "cherry")
print(thistuple)

Output :

('apple', 'banana', 'cherry')

Tuple With Duplicates :

thistuple = ("apple", "banana", "cherry", "apple", "cherry")
print(thistuple)

Output :

('apple', 'banana', 'cherry', 'apple', 'cherry')

Tuple Length :

thistuple = ("apple", "banana", "cherry")
print(len(thistuple))                  # Count number of items

Output :

3

Create Tuple With One Item :

thistuple = ("apple",)                 # Note comma makes it a tuple
print(type(thistuple))

Output :

<class 'tuple'>

Not a Tuple (Single Element Without Comma) :

thistuple = ("apple")                  # Treated as a string
print(type(thistuple))                # Output will be <class 'str'>

Output :

<class 'str'>