'''simple docstring'''

def __UpperCamelCase( _A       :					int = 10	,      _A       :					int = 10_00	,      _A       :					bool = True     ):
   '''simple docstring'''
   assert (
       isinstance(_A	,      _A     )
       and isinstance(_A	,      _A     )
       and isinstance(_A	,      _A     )
   ), "Invalid type of value(s) specified to function!"

   if min_val > max_val:
      raise ValueError('''Invalid value for min_val or max_val (min_value < max_value)'''     )
   return min_val if option else max_val







def __UpperCamelCase( _A       :					int	,      _A       :					int     ):
   '''simple docstring'''
   return int((number_a + number_a) / 2     )







def __UpperCamelCase( _A       :					int	,      _A       :					int	,      _A       :					int     ):
   '''simple docstring'''
   assert (
       isinstance(_A	,      _A     ) and isinstance(_A	,      _A     ) and isinstance(_A	,      _A     )
   ), 'argument values must be type of "int"'

   if lower > higher:
      raise ValueError('''argument value for lower and higher must be(lower > higher)'''     )

   if not lower < to_guess < higher:
      raise ValueError(
          '''guess value must be within the range of lower and higher value'''     )

   def answer(_A       :					int     ) -> str:
      if number > to_guess:
         return "high"
      elif number < to_guess:
         return "low"
      else:
         return "same"

   print('''started...'''     )

   UpperCAmelCase__				:					Optional[int] 					=	lower
   UpperCAmelCase__				:					int 					=	higher

   UpperCAmelCase__				:					Optional[Any] 					=	[]

   while True:
      UpperCAmelCase__				:					Optional[int] 					=	get_avg(_A	,      _A     )
      last_numbers.append(_A     )

      if answer(_A     ) == "low":
         UpperCAmelCase__				:					List[str] 					=	number
      elif answer(_A     ) == "high":
         UpperCAmelCase__				:					int 					=	number
      else:
         break

   print(F'''guess the number : {last_numbers[-1]}'''     )
   print(F'''details : {last_numbers!s}'''     )







def __UpperCamelCase( ):
   '''simple docstring'''
   UpperCAmelCase__				:					str 					=	int(input('''Enter lower value : '''     ).strip()     )
   UpperCAmelCase__				:					List[str] 					=	int(input('''Enter high value : '''     ).strip()     )
   UpperCAmelCase__				:					Any 					=	int(input('''Enter value to guess : '''     ).strip()     )
   guess_the_number(_A	,      _A	,      _A     )


if __name__ == "__main__":
  main()





'''simple docstring'''

import warnings


warnings.warn(
    'memory_utils has been reorganized to utils.memory. Import `find_executable_batchsize` from the main `__init__`: '
    '`from accelerate import find_executable_batch_size` to avoid this warning.',
    FutureWarning,
)




