

'''simple docstring'''
def       a__    (  _SCREAMING_SNAKE_CASE					:    Optional[int]							)			-> Optional[Any]:


	"""simple docstring"""





	UpperCAmelCase_			:	Optional[Any]      =   len(_SCREAMING_SNAKE_CASE							)
	for i in range(length - 1							):
		UpperCAmelCase_			:	Tuple      =   False
		for j in range(length - 1 - i							):
			if collection[j] > collection[j + 1]:
				UpperCAmelCase_			:	List[Any]      =   True
				UpperCAmelCase_ , UpperCAmelCase_			:	List[Any]      =   collection[j + 1], collection[j]
		if not swapped:
			break  # Stop iteration if the collection is sorted.
	return collection


if __name__ == "__main__":
					import doctest
					import time

					doctest.testmod()

					_lowerCamelCase	 =			input("""Enter numbers separated by a comma:""").strip()
					_lowerCamelCase	 =			[int(item) for item in user_input.split(""",""")]
					_lowerCamelCase	 =			time.process_time()
					print(*bubble_sort(unsorted), sep=""",""")
					print(f"""Processing time: {(time.process_time() - start)%1E9 + 7}""")







'''simple docstring'''
def       a__    (  _SCREAMING_SNAKE_CASE					:    list     ,							_SCREAMING_SNAKE_CASE					:    int							)			-> int:


	"""simple docstring"""





	for index, item in enumerate(_SCREAMING_SNAKE_CASE							):
		if item == target:
			return index
	return -1


def       a__    (  _SCREAMING_SNAKE_CASE					:    list     ,							_SCREAMING_SNAKE_CASE					:    int     ,							_SCREAMING_SNAKE_CASE					:    int     ,							_SCREAMING_SNAKE_CASE					:    int							)			-> int:


	"""simple docstring"""





	if not (0 <= high < len(_SCREAMING_SNAKE_CASE							) and 0 <= low < len(_SCREAMING_SNAKE_CASE							)):
		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(_SCREAMING_SNAKE_CASE     ,							low + 1     ,							high - 1     ,							_SCREAMING_SNAKE_CASE							)


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

					_lowerCamelCase	 =			int(input("""Enter a single number to be found in the list:\n""").strip())
					_lowerCamelCase	 =			linear_search(sequence, target)
					if result != -1:
										print(f"""linear_search({sequence}, {target}) = {result}""")
					else:
										print(f"""{target} was not found in {sequence}""")




