
import requests







def     A__   (  lowerCamelCase       ,      lowerCamelCase  )					->		None:
				UpperCamelCase_:							Dict		=  {"""Content-Type""": """application/json"""}
				UpperCamelCase_:							Union[str, Any]		=  requests.post(lowerCamelCase       ,      json={"""text""": message_body}       ,      headers=lowerCamelCase  )
				if response.status_code != 2_00:
								UpperCamelCase_:							Optional[int]		=  (
								    """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>""")








def     A__   (  lowerCamelCase       ,      lowerCamelCase  )					->		float:
				if mass < 0:
								raise ValueError("""The mass of a body cannot be negative"""  )
				return 0.5 * mass * abs(lowerCamelCase  ) * abs(lowerCamelCase  )


if __name__ == "__main__":
							import doctest

							doctest.testmod(verbose=True)






