I've been banging my head with the following code...
code = (404, 200)
if code[0] is 404:
print "yes"
if code[1] is 200:
print "yes"
should return true both right? but just the condition of the number 200 and true why?
I've been banging my head with the following code...
code = (404, 200)
if code[0] is 404:
print "yes"
if code[1] is 200:
print "yes"
should return true both right? but just the condition of the number 200 and true why?