



'''simple docstring'''


def      SCREAMING_SNAKE_CASE				(				lowercase_    :      int = 10 ,  lowercase_    :      int = 1000 ,  lowercase_    :      bool = True						):
						assert (
						    isinstance(lowercase_ ,  lowercase_						)
						    and isinstance(lowercase_ ,  lowercase_						)
						    and isinstance(lowercase_ ,  lowercase_						)
						), "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      SCREAMING_SNAKE_CASE				(				lowercase_    :      int ,  lowercase_    :      int						):
						return int((number_a + number_a) / 2						)







def      SCREAMING_SNAKE_CASE				(				lowercase_    :      int ,  lowercase_    :      int ,  lowercase_    :      int						):
						assert (
						    isinstance(lowercase_ ,  lowercase_						) and isinstance(lowercase_ ,  lowercase_						) and isinstance(lowercase_ ,  lowercase_						)
						), '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(lowercase_    :      int						) -> 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(lowercase_ ,  lowercase_						)
												last_numbers.append(lowercase_						)

												if answer(lowercase_						) == "low":
																		lowercase        =							number
												elif answer(lowercase_						) == "high":
																		lowercase        =							number
												else:
																		break

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







def      SCREAMING_SNAKE_CASE				(				):
						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(lowercase_ ,  lowercase_ ,  lowercase_						)


if __name__ == "__main__":
						main()







'''simple docstring'''


import requests







def      SCREAMING_SNAKE_CASE				(				lowercase_    :      str ,  lowercase_    :      str						):
						lowercase        =							{"""Content-Type""": """application/json"""}
						lowercase        =							requests.post(lowercase_ ,  json={"""text""": message_body} ,  headers=lowercase_						)
						if response.status_code != 200:
												lowercase        =							(
												    """Request to slack returned an error """
												    F"""{response.status_code}, the response is:\n{response.text}"""
												)
												raise ValueError(lowercase_						)


if __name__ == "__main__":
						# Set the slack url to the one provided by Slack when you create the webhook at
						# https://my.slack.com/services/new/incoming-webhook/
						send_slack_message('''<YOUR MESSAGE BODY>''', '''<SLACK CHANNEL URL>''')


