





"""simple docstring"""
def  A__    (      UpperCamelCase	):
							A		=  1
							A		=  0
							A		=  1
							A		=  1
							A		=  3
							A		=  3
							A		=  limit
							A		=  0

							A		=  ""
							while counter != decimal + 1:
														if 4 * q + r - t < n * t:
																					result += str(UpperCamelCase	)
																					if counter == 0:
																												result += "."

																					if decimal == counter:
																												break

																					counter += 1
																					A		=  10 * (r - n * t)
																					A		=  ((10 * (3 * q + r)) // t) - 10 * n
																					q *= 10
																					A		=  nr
														else:
																					A		=  (2 * q + r) * l
																					A		=  (q * (7 * k) + 2 + (r * l)) // (t * l)
																					q *= k
																					t *= l
																					l += 2
																					k += 1
																					A		=  nn
																					A		=  nr
							return result






def  A__    (      ):
							print(F"{calculate_pi(50	) = }"	)
							import doctest

							doctest.testmod()


if __name__ == "__main__":
		main()









"""simple docstring"""
def  A__    (      UpperCamelCase ,  UpperCamelCase	):
							for index, item in enumerate(UpperCamelCase	):
														if item == target:
																					return index
							return -1






def  A__    (      UpperCamelCase ,  UpperCamelCase ,  UpperCamelCase ,  UpperCamelCase	):
							if not (0 <= high < len(UpperCamelCase	) and 0 <= low < len(UpperCamelCase	)):
														raise Exception("Invalid upper or lower bound!"	)
							if high < low:
														return -1
							if sequence[low] == target:
														return low
							if sequence[high] == target:
														return high
							return rec_linear_search(UpperCamelCase ,  low + 1 ,  high - 1 ,  UpperCamelCase	)


if __name__ == "__main__":
		_snake_case					:		int							=			input('Enter numbers separated by comma:\n').strip()
		_snake_case					:		int							=			[int(item.strip()) for item in user_input.split(',')]

		_snake_case					:		Union[str, Any]							=			int(input('Enter a single number to be found in the list:\n').strip())
		_snake_case					:		List[Any]							=			linear_search(sequence, target)
		if result != -1:
				print(F"""linear_search({sequence}, {target}) = {result}""")
		else:
				print(F"""{target} was not found in {sequence}""")


