x = int(input())
y = int(input())
print([[x, y] for x in range(x) for y in range(y)])
above, whenever i use the iterator variable as x and y, 'its shows an error'
but when i change it to a and b, 'it works fine' see below
x = int(input())
y = int(input())
print([[a, b] for a in range(x) for b in range(y)]) #this is working fine
Can anyone tell me the reason behind that UnboundLocalError
?