Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find anagrams of a string python

def are_anagrams(first, second):
    return len(first) == len(second) and sorted(first) == sorted(second)
Source by www.kdnuggets.com #
 
PREVIOUS NEXT
Tagged: #find #anagrams #string #python
ADD COMMENT
Topic
Name
2+8 =