This return only the first index value where the char is present in the list. I need all the indices where char is present.
def find_loc(char):
for sub_list in chunks:
if char in sub_list:
return chunks.index(sub_list), sub_list.index(char)