'''simple docstring'''


def   A_      (       SCREAMING_SNAKE_CASE_						)			->bool:
  if not isinstance(SCREAMING_SNAKE_CASE_ ,	SCREAMING_SNAKE_CASE_						):
    raise ValueError("""Input series is not valid, valid series - [2, 4, 6]"""						)
  if len(SCREAMING_SNAKE_CASE_						) == 0:
    raise ValueError("""Input list must be a non empty list"""						)
  if len(SCREAMING_SNAKE_CASE_						) == 1:
    return True
  lowercase_     =       series[1] - series[0]
  for index in range(len(SCREAMING_SNAKE_CASE_						) - 1						):
    if series[index + 1] - series[index] != common_diff:
      return False
  return True

def   A_      (       SCREAMING_SNAKE_CASE_						)			->float:
  if not isinstance(SCREAMING_SNAKE_CASE_ ,	SCREAMING_SNAKE_CASE_						):
    raise ValueError("""Input series is not valid, valid series - [2, 4, 6]"""						)
  if len(SCREAMING_SNAKE_CASE_						) == 0:
    raise ValueError("""Input list must be a non empty list"""						)
  lowercase_     =       0
  for val in series:
    answer += val
  return answer / len(SCREAMING_SNAKE_CASE_						)


if __name__ == "__main__":
       import doctest

       doctest.testmod()


'''simple docstring'''


def   A_      (       SCREAMING_SNAKE_CASE_						)			->bool:
  if num < 0:
    return False

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

  return num_copy == rev_num


if __name__ == "__main__":
       import doctest

       doctest.testmod()

