[Python] Simple one line solution explained
\u2705 Upvote if it helps !\n# Approach\n- Two words are considered as anagram if they contains the same characters but not in the same order.\n- We convert the
#### \u2705 Upvote if it helps !\n# Approach\n- Two words are considered as anagram if they contains the same characters but not in the same order.\n- We convert the strings to lists of char with `strip()`.\n- Finally we sort the lists to not take into account the order of the characters and compare them.\n\n# Code\n```\nclass Solution(object):\n    def isAnagram(self, s, t):\n        return sorted(s.strip()) == sorted(t.strip())\n```
['Python']