the random choice(function the choice(function in the random module takes list argument and returns random value from it this is similar to the what the previous getrandomword(function did you'll use random choice(in the new version of the getrandomword(function to see how the random choice(function workstry entering the following into the interactive shellimport random random choice(['cat''dog''mouse']'mouserandom choice(['cat''dog''mouse']'catrandom choice([ ] random choice([ ] change the getrandomword(function so that its parameter will be dictionary of lists of stringsinstead of just list of strings here is what the function originally looked like def getrandomword(wordlist) this function returns random string from the passed list of strings wordindex random randint( len(wordlist return wordlist[wordindexchange the code in this function so that it looks like this def getrandomword(worddict) this function returns random string from the passed dictionary of lists of stringsand the key also firstrandomly select key from the dictionary wordkey random choice(list(worddict keys()) secondrandomly select word from the key' list in the dictionary wordindex random randint( len(worddict[wordkey] return [worddict[wordkey][wordindex]wordkeythe name of the wordlist parameter is changed to worddict to be more descriptive now instead of choosing random word from list of stringsfirst the function chooses random key in the worddict dictionary by calling random choice(