I just started to learn that python, has two functions, one is to get the value of cookie of the website, and the other is to send a get request. Why can"t I use this variable a? how can I use the value of a? direct print is valuable and I use multithreading on my send side. Ask for expert advice
.def cookieurl
    XXXXXX
    return
        XXXXXX
        
def send
    while true:
        a = cookieurl
        send = requests.get("http://www.xxxx.com", cookies=a)
        print send.status_code