





from __future__ import annotations





def 				__lowerCAmelCase(       _SCREAMING_SNAKE_CASE							,     _SCREAMING_SNAKE_CASE				)							-> bool:




    """simple docstring"""




    if len(_SCREAMING_SNAKE_CASE				) == 0:
        return False
    _A     =							len(_SCREAMING_SNAKE_CASE				) // 2
    if a_list[midpoint] == item:
        return True
    if item < a_list[midpoint]:
        return binary_search(a_list[:midpoint]							,     _SCREAMING_SNAKE_CASE				)
    else:
        return binary_search(a_list[midpoint + 1 :]							,     _SCREAMING_SNAKE_CASE				)


if __name__ == "__main__":
 __A							:			List[str]         =			input("Enter numbers separated by comma:\n").strip()
 __A							:			Dict         =			[int(item.strip()) for item in user_input.split(",")]
 __A							:			int         =			int(input("Enter the number to be found in the list:\n").strip())
 __A							:			int         =			"" if binary_search(sequence, target) else "not "
 print(f"{target} was {not_str}found in {sequence}")








"""simple docstring"""
import requests




def 					a__						(						lowerCAmelCase			,	lowerCAmelCase    )	-> None:
      UpperCAmelCase__			:							List[str]							=    {"""Content-Type""": """application/json"""}
      UpperCAmelCase__			:							List[str]							=    requests.post(lowerCAmelCase			,	json={"""text""": message_body}			,	headers=lowerCAmelCase    )
      if response.status_code != 2_00:
            UpperCAmelCase__			:							str							=    (
                """Request to slack returned an error """
                F"""{response.status_code}, the response is:\n{response.text}"""
            )
            raise ValueError(lowerCAmelCase    )


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>""")

