
from collections import defaultdict




def _a (  SCREAMING_SNAKE_CASE__      :  str			,				SCREAMING_SNAKE_CASE__      :  str       )	->    bool:

							'''simple docstring'''






							SCREAMING_SNAKE_CASE__       :      Union[str, Any]     =						first_str.lower().strip()
							SCREAMING_SNAKE_CASE__       :      List[Any]     =						second_str.lower().strip()

							# Remove whitespace
							SCREAMING_SNAKE_CASE__       :      Any     =						first_str.replace(" "			,				""       )
							SCREAMING_SNAKE_CASE__       :      Union[str, Any]     =						second_str.replace(" "			,				""       )

							# Strings of different lengths are not anagrams
							if len(lowercase__       ) != len(lowercase__       ):
														return False

							# Default values for count should be 0
							SCREAMING_SNAKE_CASE__       :      defaultdict[str, int]     =						defaultdict(lowercase__       )

							# For each character in input strings,
							# increment count in the corresponding
							for i in range(len(lowercase__       )       ):
														count[first_str[i]] += 1
														count[second_str[i]] -= 1

							return all(_count == 0 for _count in count.values()       )


if __name__ == "__main__":
		from doctest import testmod

		testmod()
		_lowerCamelCase :    str  							= input('''Enter the first string ''').strip()
		_lowerCamelCase :    Tuple  							= input('''Enter the second string ''').strip()

		_lowerCamelCase :    Dict  							= check_anagrams(input_a, input_b)
		print(f"{input_a} and {input_b} are {'' if status else 'not '}anagrams.")













def _a (  SCREAMING_SNAKE_CASE__      :  str			,				SCREAMING_SNAKE_CASE__      :  str       )	->    int:

							'''simple docstring'''






							if len(SCREAMING_SNAKE_CASE__       ) != len(SCREAMING_SNAKE_CASE__       ):
														raise ValueError("String lengths must match!"       )

							SCREAMING_SNAKE_CASE__       :      Dict     =						0

							for chara, chara in zip(SCREAMING_SNAKE_CASE__			,				SCREAMING_SNAKE_CASE__       ):
														if chara != chara:
																					count += 1

							return count


if __name__ == "__main__":
		import doctest

		doctest.testmod()






