My issue
Despite getting the expected output its showing wring answer
My code
# cook your dish here
t= int(input())
for i in range(t):
X=(input())
Y=(input())
count=0
for i in range(len(X)):
if X[i]==Y[i]:
count=0
else:
if X[i]=="?" or Y[i]=="?":
count=0
else:
count+=1
break
if count==0:
print("YES")
else:
print("NO")
Learning course: Strings using Python
Problem Link: Chef and the Wildcard Matching Practice Problem in - CodeChef