5. Implement the following function in the PyDev module functions.py and test it from a PyDev module named t05.py: AUMAS
Posted: Tue Jul 12, 2022 8:11 am
5. Implement the following function in the PyDev module functions.py and test it from a PyDev module named t05.py: AUMASCHINE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 def words_to_matrix(word_list): 11 11 11 Generates a 2D list of character values from the given list of words. All words must be the same length. Use: matrix = words_to_matrix(word_list) Parameters: word_list - a list containing the words to be placed in the matrix (list of string) Returns: matrix - a 2D list of characters of the given words in word list (2D list of string). Sample execution: 1 strings ["cat", "dog", "big"] 2 words_to_matrix(strings) [['c', 'a', 't'], ['d', 'o', 'g'], ['b', 'i', 'g']]