10. Implement the following function in the PyDev module functions.py and test it from a PyDev module named t10.py: HEMA
Posted: Tue Jul 12, 2022 8:11 am
10. Implement the following function in the PyDev module functions.py and test it from a PyDev module named t10.py: HEMATOCHTER 1 2 4 5 6 7 8 9 10 11 12 13 14 15 def find_word_horizontal (matrix, word): Look for word in each row of the given matrix of characters. Returns a list of indexes of all rows that are equal to word. Returns an empty list if no row is equal to word. Use: rows = find_word_horizontal (matrix, word) [1] Parameters: matrix - the matrix of characters (2D list of str) word the word to search for (str) Returns: rows a list of row indexes (list of int) Sample execution: 1 find_word_horizontal ([['c', 'a', 't'], ['d', 'o', 'g'], ['b', 'i', 'g']], "dog")