


"""simple docstring"""





from __future__ import annotations


def   _snake_case    (    _snake_case					:      list[int | float]      ):
      if len(_snake_case      ) == 0:
            raise ValueError('''find_max() arg is an empty sequence'''      )
      lowerCAmelCase       :						Dict							= nums[0]
      for x in nums:
            if x > max_num:
                  lowerCAmelCase       :						Optional[Any]							= x
      return max_num


if __name__ == "__main__":
 import doctest

 doctest.testmod(verbose=True)






"""simple docstring"""





def   _snake_case    (    _snake_case					:      int      ):
      if not isinstance(_snake_case			, _snake_case      ):
            lowerCAmelCase       :						int							= f'''Input value of [number={number}] must be an integer'''
            raise TypeError(_snake_case      )
      if number < 0 or number % 2 == 1:
            return False
      lowerCAmelCase       :						int							= int(number**0.5      )
      return number == number_sqrt * (number_sqrt + 1)


if __name__ == "__main__":
 import doctest

 doctest.testmod()


