Write code in Python that does the following : An anagram iswhen the order of a word can be changed to create a new word(evil,
live, and vile for example). Using the dictionary provided, findall of the anagram groups.
Which words contain the most anagrams? How large is this group?Here is another example:
Alert, alter, and later have 3 in their group. Use the provideddict.txt as your word list,
solution must also finish in less than a minute.
* I know there is no dict.txt file to use here..
file = open(\"dict.txt\", \"r\", encoding=\"utf8\")
*looking for a way to sort through the file and group anogramstogether
*output the groups from largest to smallest (if there is only asingle word in a group, no need to display)
file.close()