demo_ref_keyword_in.py:
fruits = ["apple", "banana", "cherry"] if "banana" in fruits: print("yes")
C:\Users\My Name>python demo_keyword_in.py
yes