I'm trying to figure out a way to search though a 2D array to find a certain word and then replacin that word.
For example:
pets = [['I', 'have', 'a', 'cat'], ['She', 'has', 'a', 'pet', 'cat']]
I need a way to search for the word 'cat' and replace it with the word 'dog'.
petsor there are more sentences?