Tuple Range Using Negative Indexes :

thistuple = (
  "apple", "banana", "cherry",
  "orange", "kiwi", "melon", "mango"
)
print(thistuple[-4:-1])  # Slice from end

Output :

('orange', 'kiwi', 'melon')

Check Item in Tuple :

thistuple = ("apple", "banana", "cherry")
if "apple" in thistuple:
    print("Yes, 'apple' is in the fruits tuple")

Output :

Yes, 'apple' is in the fruits tuple

Change Tuple Value via List Conversion :

x = ("apple", "banana", "cherry")
y = list(x)         # Convert tuple to list
y[1] = "kiwi"       # Modify list item
x = tuple(y)        # Convert back to tuple
print(x)

Output :

('apple', 'kiwi', 'cherry')

Add Item to Tuple (Error Example) :

thistuple = ("apple", "banana", "cherry")
# thistuple.append("orange")  # ❌ This line will raise an error
print(thistuple)

Output :

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

Tuple Packing :

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

Output :

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