title: Anagram Python 3
body: <p>How can I write a function that checks whether 2 inputs are anagrams?</p>
  <pre><code>word1 = input(&quot;Enter a string: &quot;)
  word2 = input(&quot;Enter a second string: &quot;)
  
  def isAnagram(s1, s2):
      s1 = word1.sort()
      s2 = word2.sort()
      if s1 == s2:
         print(&quot;This is an anagram&quot;)
      else:
         print(&quot;This is not an anagram)
  isAnagram()
  </code></pre>