



def 	snake_case_  (				A_ :		list						):


       '''simple docstring'''





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






def 	snake_case_  (				A_ :		list						):


       '''simple docstring'''





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


if __name__ == "__main__":
   import doctest

   doctest.testmod()







"""simple docstring"""






import math






def 	snake_case_  (				A_ :		int						):


       '''simple docstring'''





       return math.sqrt(A_						) * math.sqrt(A_						) == num






def 	snake_case_  (				A_ :		int						):


       '''simple docstring'''





       _lowerCamelCase						:    Dict         =			0
       _lowerCamelCase						:    Tuple         =			n
       while left <= right:
              _lowerCamelCase						:    List[str]         =			(left + right) // 2
              if mid**2 == n:
                     return True
              elif mid**2 > n:
                     _lowerCamelCase						:    int         =			mid - 1
              else:
                     _lowerCamelCase						:    Optional[Any]         =			mid + 1
       return False


if __name__ == "__main__":
   import doctest

   doctest.testmod()


