Source Code:
(back to article)
my_set = {'apple', 'banana', 'cherry'} if 'apple' in my_set: print('Yes')
Result:
Report an issue