




"""simple docstring"""






from __future__ import annotations







def      _snake_case			(				lowercase__							,    lowercase__		):
				_lowerCamelCase     :			Dict    =    sorted(numsa + numsa		)
				_lowerCamelCase, _lowerCamelCase     :			Any    =    divmod(len(lowercase__		)							,    2		)
				if mod == 1:
								return all_numbers[div]
				else:
								return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
			import doctest

			doctest.testmod()
			lowercase__     						=						[float(x) for x in input("""Enter the elements of first array: """).split()]
			lowercase__     						=						[float(x) for x in input("""Enter the elements of second array: """).split()]
			print(F"The median of two arrays is: {median_of_two_arrays(array_a, array_a)}")





"""simple docstring"""






def      _snake_case			(				lowercase__		):
				if not isinstance(lowercase__							,    lowercase__		):
								raise ValueError('Input series is not valid, valid series - [2, 4, 6]'		)
				if len(lowercase__		) == 0:
								raise ValueError('Input list must be a non empty list'		)
				if len(lowercase__		) == 1:
								return True
				_lowerCamelCase     :			List[Any]    =    series[1] - series[0]
				for index in range(len(lowercase__		) - 1		):
								if series[index + 1] - series[index] != common_diff:
												return False
				return True







def      _snake_case			(				lowercase__		):
				if not isinstance(lowercase__							,    lowercase__		):
								raise ValueError('Input series is not valid, valid series - [2, 4, 6]'		)
				if len(lowercase__		) == 0:
								raise ValueError('Input list must be a non empty list'		)
				_lowerCamelCase     :			Optional[int]    =    0
				for val in series:
								answer += val
				return answer / len(lowercase__		)


if __name__ == "__main__":
			import doctest

			doctest.testmod()