I want to iterate through a list that contains a mix of lists and non-list elements. Here's an example:
a = [[1, 2, 3, 4, 5], 8, 9, 0, [1, 2, 3, 4, 5]]
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: [1, 2, 3, 4, 5] and 8