Write a Python Program to Detect if Two Strings are Anagrams


Topic: Write a Python Program to Detect if Two Strings are Anagrams

Solution

def anagram_check(s1, s2):
    if(sorted(s1)==sorted(s2)):
        return True
    else:
        return False



List all Python Programs