my_tuple = (1, 2, 3, 'apple', 'bananas')
            
print("Original Tuple:", my_tuple)


print("Element at index 2:", my_tuple[2])
print("Elements from index 1 to 4:", my_tuple[1:5])

a, b, *rest = my_tuple
print("Unpacked values - a:", a, "b:", b, "rest:", rest)


another_tuple = ('orange', 4, 5.0)
combined_tuple = my_tuple + another_tuple
print("Combined Tuple:", combined_tuple)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: