Check if Element Exists in Tuplemy_tuple = ("apple", "banana", "cherry", "mango", "orange")
item = input("Enter item to check: ")
if item in my_tuple:
print(f"Yes, '{item}' exists in the tuple.")
else:
print(f"No, '{item}' does not exist in the tuple.")
my_tuple = ("apple", "banana", "cherry", "mango", "orange")
item = input("Enter item to check: ")
if item in my_tuple:
print(f"Yes, '{item}' exists in the tuple.")
else:
print(f"No, '{item}' does not exist in the tuple.")