Coursework 2

(c) Find all anagrams of a word

Write a function find_all_anagrams(string), which take a string as input and returns a list of all words in the file english_words.txt that are anagrams of the input string.

More specifically given an input string the function should return a list [word1, ..., wordN] such that each word in this list is a word in the dictionary file such that the value function anagrams(string,word) is True (as specified in part (a) of this coursework).

Examples
INPUT OUPUT
'cheese' []
'Python' ['phyton', 'typhon']
'relating' ['alerting', 'altering', 'integral', 'tanglier', 'triangle']

Note: