I have a list [[1],[2,3],[a, b, c], [1, a, b, 3]]
I need to find the longest list that contains the char a
.
I have the code to find the lenght of the longest list, but can't implement the search for the a
char:
def find_max_list(list):
list_len = [len(i) for i in list]
print(max(list_len))
find_max_list(your_list)