I'm an in python. I'm trying to learn using functions. My code block and error are below. Could you help me please How can I use "def" word to describe a function. How can I fix the problem?
Thanks.
File "C:/Users/tCLARABUL/PycharmProjects/test/WScall.py", line 8
url == "http://zzzz:80/xxx/yyy?WSDL"
^
IndentationError: expected an indented block
import requests
def inka(ntfid):
url = "http://zzzz:80/xxx/yyy?WSDL"
headers = yyy
body = "xxx""
response = requests.post(url, data=body, headers=headers)
return response.text
print(inka(122727))