




'''simple docstring'''


from math import factorial, pi
def 						lowerCamelCase__   (				a    ,	a = 30							):

						if not isinstance(a    ,	(int, float)							):
												raise ValueError('maclaurin_sin() requires either an int or float for theta'							)

						if not isinstance(a    ,	a							) or accuracy <= 0:
												raise ValueError('maclaurin_sin() requires a positive int for accuracy'							)

						__snake_case						 =   float(a							)
						__snake_case						 =   theta // (2 * pi)
						theta -= 2 * div * pi
						return sum(
						    (-1) ** r * theta ** (2 * r + 1) / factorial(2 * r + 1							) for r in range(a							)							)
def 						lowerCamelCase__   (				a    ,	a = 30							):

						if not isinstance(a    ,	(int, float)							):
												raise ValueError('maclaurin_cos() requires either an int or float for theta'							)

						if not isinstance(a    ,	a							) or accuracy <= 0:
												raise ValueError('maclaurin_cos() requires a positive int for accuracy'							)

						__snake_case						 =   float(a							)
						__snake_case						 =   theta // (2 * pi)
						theta -= 2 * div * pi
						return sum((-1) ** r * theta ** (2 * r) / factorial(2 * r							) for r in range(a							)							)


if __name__ == "__main__":
	import doctest

	doctest.testmod()

	print(maclaurin_sin(10))
	print(maclaurin_sin(-10))
	print(maclaurin_sin(10, 15))
	print(maclaurin_sin(-10, 15))

	print(maclaurin_cos(5))
	print(maclaurin_cos(-5))
	print(maclaurin_cos(10, 15))
	print(maclaurin_cos(-10, 15))







'''simple docstring'''


from collections import defaultdict
def 						lowerCamelCase__   (				a    ,	a							):
						__snake_case						 =   first_str.lower().strip()
						__snake_case						 =   second_str.lower().strip()

						# Remove whitespace
						__snake_case						 =   first_str.replace(' '    ,	''							)
						__snake_case						 =   second_str.replace(' '    ,	''							)

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

						# Default values for count should be 0
						__snake_case						 =   defaultdict(a							)

						# For each character in input strings,
						# increment count in the corresponding
						for i in range(len(a							)							):
												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()
	_lowercase  =			input("""Enter the first string """).strip()
	_lowercase  =			input("""Enter the second string """).strip()

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

