I want to use syntax similar to this:
if a in b
but I want to check for more than one item, so I need somthing like this:
if ('d' or 'g' or 'u') in a
but I know it doesn't work.
so I did it this way:
for i in a:
for j in ['d','g','u']:
if i==j
and it worked, but I wonder if there's a simpler way.