Source Code:
(back to article)
if any(x == item for item in my_list): print("x exists in my_list") else: print("x does not exist in my_list")
Result:
Report an issue