Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

anagrams string python


def isAnagram(str1, str2):
    str1_list = list(str1)
    str1_list.sort()
    str2_list = list(str2)
    str2_list.sort()

    return (str1_list == str2_list)

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #anagrams #string #python
ADD COMMENT
Topic
Name
6+1 =