Been trying to figure this out for two hours or so, can't seem to figure out how to create an anagram function without using sorted(). Trying to figure it out without using splice, .find(), .count(), .replace(), and sorted(). Currently what I have which works:
def anagram(anag1, anag2):
if (sorted(anag1) == sorted(anag2)):
return True
else:
return False
If anybody has a way to do it without sorted that would be great.