demo_ref_keyword_in.py:
fruits = ["apple", "banana", "cherry"] if "banana" in fruits: print("yes")
➜ begtut>python demo_keyword_in.py
yes