

"""simple docstring"""




def 	A       (     snake_case__    ):




			'''simple docstring'''


			if not isinstance(snake_case__		,				snake_case__    ):
						SCREAMING_SNAKE_CASE__								=      f"""Input value of [number={number}] must be an integer"""
						raise TypeError(snake_case__    )
			if number < 0:
						return False
			SCREAMING_SNAKE_CASE__								=      number * number
			while number > 0:
						if number % 10 != number_square % 10:
									return False
						number //= 10
						number_square //= 10
			return True


if __name__ == "__main__":
						import doctest

						doctest.testmod()





"""simple docstring"""




def 	A       (     snake_case__    ):




			'''simple docstring'''


			if not nums:  # Makes sure that the list is not empty
						raise ValueError("""List is empty"""    )

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


if __name__ == "__main__":
						import doctest

						doctest.testmod()


