Can anyone find out the error in the above code

t = int(input())

for i in range (t):

n, k = list(map(int, input().split()))

if k == 1:

if n % 2 != 0:

print(‘Yes’)

else:

print(‘No’)

```
if k == 0:
print('No')
if k != 1:
if k % 2 == 0:
if n % 2 == 0:
print('Yes')
else:
print('No')
if k % 2 != 0:
if n % 2 != 0:
print('Yes')
else:
print('No')
```