Help me in solving CS10A problem

My issue

i want this code in python

My code

# The code below is incorrect. Debug the code to solve this problem

t=int(input())
for i in range(t):
    X,Y = map(int,input().split())
    if X>=Y:
        print("YES")
    else:
        print("NO")
    

Learning course: Solve Programming problems using Python
Problem Link: Debug this code - Football Cup in Solve Programming problems using Python

The problem states that there should be at least one goal and x and y should be equal, So you need to check if both x and y are equal or not and if they are then check if they are equal to 0 or not , if they are then you can print NO otherwise YES.
Here’s the improved code:

t=int(input())
for i in range(t):
X,Y = map(int,input().split())
if X==Y and X!=0:
print(“YES”)
else:
print(“NO”)