my_list = [1, 2, 3, 4, 5] value = 3 if value in my_list: print("Value exists in the list!") else: print("Value does not exist in the list.")