whats wrong with my code .Spell Bob

for _ in range(int(input())):
a = list(input())
b = list(input())
f,c=0,0
for i in range(3):
if (a[i] == ‘o’ or b[i] == ‘o’):
c+=1
for j in range(3):
if j!=i and (a[j] == ‘b’ or b[j] == ‘b’):
c+= 1
if c==3:
f=1
break

print("yes" if f else "no")

Try out the test case

1
ooo
ooo

Output should be no

//