I have a list that contains nested lists and I need to know the most efficient way to search within those nested lists.
e.g., if I have
[[\'a\',\'b\
if you just want to know that your element is there in the list or not then you can do this by converting list to string and check it. you can extend this of more nested list . like [[1],'a','b','d',['a','b',['c',1]]] this method is helpful iff you dont know that level of nested list and want to know that is the searchable item is there or not.
search='d'
lis = [['a',['b'],'c'],[['d'],'e','f']]
print(search in str(lis))