demo_tuple_in.py:
thistuple = ("apple", "banana", "cherry") if "apple" in thistuple: print("Yes, 'apple' is in the fruits tuple")
➜ begtut>python demo_tuple_in.py
Yes, 'apple' is in the fruits tuple