
def     __lowerCAmelCase			(			a__  )       ->  float:
				if not nums:  # Makes sure that the list is not empty
								raise ValueError('''List is empty'''  )

				__a										=    sum(a__  ) / len(a__  )  # Calculate the average
				return sum(abs(x - average  ) for x in nums  ) / len(a__  )


if __name__ == "__main__":
					import doctest

					doctest.testmod()

def        a_		(       __lowercase   :	str ) ->  int:
			_snake_case		=			hex_num.strip()
			if not hex_num:
						raise ValueError('No value was passed to the function' )

			_snake_case		=			hex_num[0] == '-'
			if is_negative:
						_snake_case		=			hex_num[1:]

			try:
						_snake_case		=			int(__lowercase       ,					16 )
			except ValueError:
						raise ValueError('Invalid value was passed to the function' )

			_snake_case		=			''
			while int_num > 0:
						_snake_case		=			str(int_num % 2 ) + bin_str
						int_num >>= 1

			return int(('-' + bin_str) if is_negative else bin_str )


if __name__ == "__main__":
			import doctest

			doctest.testmod()