Write a Python function to Detect if Two Strings are Anagrams


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

Solution

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



List all Python Programs