xxxxxxxxxx
# Sample list of tuples
list_of_tuples = [('apple', 1), ('banana', 2), ('orange', 3)]
# Tuple to check for existence in the list
tuple_to_check = ('banana', 2)
# Check if tuple exists in the list
if tuple_to_check in list_of_tuples:
print("Tuple exists in the list")
else:
print("Tuple does not exist in the list")