This question already has an answer here:
I have a value cookie that is returned from a POST call using Python.
I need to check whether the cookie value is empty or null. Thus I need a function or expression for the if condition. How can I do this in Python? For example:
if cookie == NULL if cookie == None
P.S. cookie is the variable in which the value is stored.