If I want to find something in a list in python I can use the 'in' operator:
list = ['foo', 'bar']
'foo' in list #returns True
But what should I do if I want to find something in a nested list?
list = [('foo', 'bar'), ('bar', 'foo')]
'foo' in list #returns False
Is it possible to do it in one row without a for loop for example?
Thanks!