



'''simple docstring'''


from __future__ import annotations

lowercase_      :				Any   					=    1.6_021e-19  # units = C







def      SCREAMING_SNAKE_CASE				(				lowercase_    :      float ,  lowercase_    :      float ,  lowercase_    :      float ,  ):
						if (conductivity, electron_conc, mobility).count(0						) != 1:
												raise ValueError("""You cannot supply more or less than 2 values"""						)
						elif conductivity < 0:
												raise ValueError("""Conductivity cannot be negative"""						)
						elif electron_conc < 0:
												raise ValueError("""Electron concentration cannot be negative"""						)
						elif mobility < 0:
												raise ValueError("""mobility cannot be negative"""						)
						elif conductivity == 0:
												return (
												    "conductivity",
												    mobility * electron_conc * ELECTRON_CHARGE,
												)
						elif electron_conc == 0:
												return (
												    "electron_conc",
												    conductivity / (mobility * ELECTRON_CHARGE),
												)
						else:
												return (
												    "mobility",
												    conductivity / (electron_conc * ELECTRON_CHARGE),
												)


if __name__ == "__main__":
						import doctest

						doctest.testmod()







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


