Skip to content

Instantly share code, notes, and snippets.

@sahasourav17
Created January 14, 2022 17:20
Show Gist options
  • Save sahasourav17/a91de2043e114874e6cab6a0f772a74d to your computer and use it in GitHub Desktop.
Save sahasourav17/a91de2043e114874e6cab6a0f772a74d to your computer and use it in GitHub Desktop.
def anagrams(s1,s2):
if len(s1) != len(s2):
return False
return sorted(s1) == sorted(s2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment