title: Iterate through a list of integer and lists in Python
body: <p>I want to iterate through a list that contains a mix of lists and non-list elements. Here's an example:</p>
  
  <pre><code>a = [[1, 2, 3, 4, 5], 8, 9, 0, [1, 2, 3, 4, 5]] 
  </code></pre>
  
  <p>I know how to iterate through a mandatory list of lists, but in this case I don't know how to do it. My objective is to compare one value of the nested list with another value in the list. For example in this case: <code>[1, 2, 3, 4, 5]</code> and <code>8</code></p>