use print(x), not print(y). (or set y=x after defining x, then print(y) should work.
print(x)
print(y)
y=x
x