


def  a   (lowerCAmelCase__ = 10		,				lowerCAmelCase__ = 1_000		,				lowerCAmelCase__ = True   ):
   assert (
       isinstance(lowerCAmelCase__		,				lowerCAmelCase__   )
       and isinstance(lowerCAmelCase__		,				lowerCAmelCase__   )
       and isinstance(lowerCAmelCase__		,				lowerCAmelCase__   )
   ), "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   (lowerCAmelCase__		,				lowerCAmelCase__   ):
   return int((number_a + number_a) / 2   )




def  a   (lowerCAmelCase__		,				lowerCAmelCase__		,				lowerCAmelCase__   ):
   assert (
       isinstance(lowerCAmelCase__		,				lowerCAmelCase__   ) and isinstance(lowerCAmelCase__		,				lowerCAmelCase__   ) and isinstance(lowerCAmelCase__		,				lowerCAmelCase__   )
   ), '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(lowerCAmelCase__   ) -> str:
      if number > to_guess:
         return "high"
      elif number < to_guess:
         return "low"
      else:
         return "same"

   print("""started..."""   )

   __a					=  lower
   __a					=  higher

   __a					=  []

   while True:
      __a					=  get_avg(lowerCAmelCase__		,				lowerCAmelCase__   )
      last_numbers.append(lowerCAmelCase__   )

      if answer(lowerCAmelCase__   ) == "low":
         __a					=  number
      elif answer(lowerCAmelCase__   ) == "high":
         __a					=  number
      else:
         break

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




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


if __name__ == "__main__":
  main()







'''simple docstring'''


# Function to print upper half of diamond (pyramid)


def 		_lowercase (SCREAMING_SNAKE_CASE							):




     '''simple docstring'''





     for i in range(0       ,					SCREAMING_SNAKE_CASE							):
          for _ in range(0       ,					n - i - 1							):  # printing spaces
               print(" "       ,					end=""							)
          for _ in range(0       ,					i + 1							):  # printing stars
               print("* "       ,					end=""							)
          print()


def 		_lowercase (SCREAMING_SNAKE_CASE							):




     '''simple docstring'''





     for i in range(SCREAMING_SNAKE_CASE       ,					0       ,					-1							):
          for _ in range(SCREAMING_SNAKE_CASE       ,					0       ,					-1							):  # printing stars
               print("* "       ,					end=""							)
          print()
          for _ in range(n - i + 1       ,					0       ,					-1							):  # printing spaces
               print(" "       ,					end=""							)


def 		_lowercase (SCREAMING_SNAKE_CASE							):




     '''simple docstring'''





     if n <= 0:
          print("       ...       ....        nothing printing :("							)
          return
     floyd(SCREAMING_SNAKE_CASE							)  # upper half
     reverse_floyd(SCREAMING_SNAKE_CASE							)  # lower half


if __name__ == "__main__":
      print(r"""| /\ | |- |  |-  |--| |\  /| |-""")
      print(r"""|/  \| |- |_ |_  |__| | \/ | |_""")
      _UpperCamelCase 							=  1
      while K:
            _UpperCamelCase 							=  int(input("""enter the number and , and see the magic : """))
            print()
            pretty_print(user_number)
            _UpperCamelCase 							=  int(input("""press 0 to exit... and 1 to continue..."""))

      print("""Good Bye...""")

