Run
fruits = ['apple', 'banana', 'cherry', 'mango'] x = 'mango' if x in fruits: print('value is present in the list.')
Output