I have a value cookie that is returned from a POST call using Python.
I need to check whether the
if cookie == NULL
if cookie == None
if cookie and not cookie.isspace(): # the string is non-empty else: # the string is empty
The above takes in consideration the cases where the string is
None or a sequence of white spaces.