I have been debugging this code and couldn’t make the == operator work on two matching strings.
The code:
str1 = "string1"
str2 = "string2"
print str1
print str2
for row in results:
print row[0]
print row[1] #as requested
if((row[0] == str1) and (row[1] == str2)):
print "We found the match....."
#rest of the code
make sure you clean out the whitespace with
.strip().