"""simple docstring"""


def 					__a   (		A = 10    ,				A = 10_00    ,				A = True      ):
     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 					__a   (		A    ,				A      ):
     return int((number_a + number_a) / 2      )







def 					__a   (		A    ,				A    ,				A      ):
     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      ) -> str:
          if number > to_guess:
               return "high"
          elif number < to_guess:
               return "low"
          else:
               return "same"

     print("started..."      )

     lowercase__				 =							lower
     lowercase__				 =							higher

     lowercase__				 =							[]

     while True:
          lowercase__				 =							get_avg(A    ,				A      )
          last_numbers.append(A      )

          if answer(A      ) == "low":
               lowercase__				 =							number
          elif answer(A      ) == "high":
               lowercase__				 =							number
          else:
               break

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







def 					__a   (		):
     lowercase__				 =							int(input("Enter lower value : "      ).strip()      )
     lowercase__				 =							int(input("Enter high value : "      ).strip()      )
     lowercase__				 =							int(input("Enter value to guess : "      ).strip()      )
     guess_the_number(A    ,				A    ,				A      )


if __name__ == "__main__":
 main()





"""simple docstring"""


from __future__ import annotations







def 					__a   (		A    ,				A      ):






     '''simple docstring'''



     if partitions <= 0:
          raise ValueError("partitions must be a positive number!"      )
     if partitions > number_of_bytes:
          raise ValueError("partitions can not > number_of_bytes!"      )
     lowercase__				 =							number_of_bytes // partitions
     lowercase__				 =							[]
     for i in range(A      ):
          lowercase__				 =							i * bytes_per_partition + 1
          lowercase__				 =							(
              number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
          )
          allocation_list.append(f'''{start_bytes}-{end_bytes}'''      )
     return allocation_list


if __name__ == "__main__":
 import doctest

 doctest.testmod()




