demo_tuple_in.py:
thistuple = ("apple", "banana", "cherry") if "apple" in thistuple: print("Yes, 'apple' is in the fruits tuple")
C:\Users\My Name>python demo_tuple_in.py
Yes, 'apple' is in the fruits tuple