How to Find the Index of an Element in a List of Lists?
Problem Formulation Given a list of lists lst, and Given an element x. How to find the row and column index of the element x in the list of lists lst? If the element does not occur in a list, the return value should be the tuple (-1, -1). If the element exists multiple times, … Read more