Skip to content

Instantly share code, notes, and snippets.

@calthoff
Created April 10, 2018 03:32
Show Gist options
  • Select an option

  • Save calthoff/045fa73d89f47bf369ff36c52b81ab42 to your computer and use it in GitHub Desktop.

Select an option

Save calthoff/045fa73d89f47bf369ff36c52b81ab42 to your computer and use it in GitHub Desktop.
def is_anagram(w1, w2):
w1 = w1.lower()
w2 = w2.lower()
return sorted(w1) == sorted(w2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment