What I\'m trying to do is if I have a list like:
[\"lime\", \"mile\", \"liem\", \"tag\", \"gat\", \"goat\", \"math\"]
I want to write a functio
The easy way to analyses anagram words is to put them in alphabetic order.So you create a second list with alphabetic ordered words.
['lime', 'mile', 'liem', 'tag', 'gat']
index = 0
b = []
for i in a:
b.insert(index, ''.join(sorted(i)))
index = index + 1
['eilm', 'eilm', 'eilm', 'agt', 'agt']
I think you can have more pythonesque code than the one i give you, but i think the important thing for you is to order letters in the word.
Now you can do something to analyse your anagrams