





'''simple docstring'''

def 						__magic_name__       (							__UpperCAmelCase      )						->					float:

   '''simple docstring'''







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

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


if __name__ == "__main__":
    import doctest

    doctest.testmod()









'''simple docstring'''

def 						__magic_name__       (							__UpperCAmelCase      )						->					bool:

   '''simple docstring'''







   if num < 0:
      return False

   __SCREAMING_SNAKE_CASE      							=       num
   __SCREAMING_SNAKE_CASE      							=       0
   while num > 0:
      __SCREAMING_SNAKE_CASE      							=       rev_num * 10 + (num % 10)
      num //= 10

   return num_copy == rev_num


if __name__ == "__main__":
    import doctest

    doctest.testmod()





