Help me in solving WORDLE problem

My issue

My code

# cook your dish here


t = int(input())

for i in range(t):
    a,b=input().strip().split()
    result = ""

    for i in range(len(b)):
        if a[i] == b[i]:
            result += "G"
        else:
            result += "B"

    print(result)

Problem Link: WORDLE Problem - CodeChef

@msaimounika
u haven’t taken the input of a and b properly.

thank you i have been solved