def checkzerodivision(num1, num2):
try:
a = num1/num2
except ZeroDivisionError:
return "Деление на 0"
else:
return a
try:
a = 5/0
except ZeroDivisionError:
a = 0
0
def auth_user():
url = f"{HOST_NAME}/auth"
headers = {
'Content-Type': 'application/json',
}
payload = {
"UserName": "",
"Password": "",
}
response = requests.request("POST", url, headers=headers, data=payload)
return response.cookies