Write a python function to check if 2 strings are anagrams or not


Topic: Write a python function to check if 2 strings are anagrams or not

Solution

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



List all Python Programs