I need to check if an element is part of a list, but the list looks like:
>>> lst = [[1,2], 3, [1,2], [1,4]]
>>> possible = [1,4]
I tried to check it with multiple for-loops, but the problem is the integer, it isn't iterable.
>>> for pos_elem in range(len(possible)):
       for i in lst:
          for j in i:
             if possible[pos_elem] == j:
                print j
Is there a code that will check every element of lst without error?
 
     
    