

from __future__ import annotations

def 			lowerCamelCase__			(       _a				,      _a):
	if len(_a) == 0:
		return False
	SCREAMING_SNAKE_CASE :   Optional[Any]					  =							len(_a) // 2
	if a_list[midpoint] == item:
		return True
	if item < a_list[midpoint]:
		return binary_search(a_list[:midpoint]				,      _a)
	else:
		return binary_search(a_list[midpoint + 1 :]				,      _a)


if __name__ == "__main__":
			a_      =     input('Enter numbers separated by comma:\n').strip()
			a_      =     [int(item.strip()) for item in user_input.split(',')]
			a_      =     int(input('Enter the number to be found in the list:\n').strip())
			a_      =     '' if binary_search(sequence, target) else 'not '
			print(F'''{target} was {not_str}found in {sequence}''')


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")

	SCREAMING_SNAKE_CASE :   int					  =							float(_a)
	SCREAMING_SNAKE_CASE :   Dict					  =							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")

	SCREAMING_SNAKE_CASE :   str					  =							float(_a)
	SCREAMING_SNAKE_CASE :   Any					  =							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))