Source Code:
(back to article)
my_list = [1, 2, 3, 4] if 5 not in my_list: print("5 is not in the list") else: print("5 is in the list")
Result:
Report an issue