def index_2d(seqs: List[List[Any]], target: Any) -> Tuple[int, int]:
    """Finds the first index of a target item within a list of lists.

    Args:
        seqs: The list of lists to search.
        target: The item to find.

    Raises:
        ValueError: Item is not present.
    """
    for i in range(len(seqs)):
        for j in range(len(seqs[i])):
            if seqs[i][j] == target:
                return i, j
    raise ValueError('Item not present.')
def index_2d ( seqs : List [ List [ Any ] ] , target : Any ) -> Tuple [ int , int ] : for i in range ( len ( seqs ) ) : for j in range ( len ( seqs [ i ] ) ) : if seqs [ i ] [ j ] == target : return i , j raise ValueError ( 'Item not present.' )
Finds the first index of a target item within a list of lists.

    Args:
        seqs: The list of lists to search.
        target: The item to find.

    Raises:
        ValueError: Item is not present.