Faizan

How to search a list of lists in python

Lists are just like arrays but they can store items of different datatypes in them such as integers, floating numbers, strings etc. They can also store lists in them. For example a=[[1,2,3],[‘apple’, ‘mango’],[2.3, 1.5, 9.0, 2, ‘cherry’]]. Here ‘a’ is a list. Now, the problem is how will you search whether the given element exists in a list or not. …

How to search a list of lists in python Read More »