Runtime Error (NZEC) in "Life, the Universe, and Everything" (TEST)

nos = 0
while nos!=42:
nos = int(input())
print(nos)

let’s say for an input, nos = 42. Your code will first print it, then check its value in the next iteration, which is wrong.