Assignment vs comparison

While both versions are valid, I don't think the assignment was the intended behavior as the koan was about control structures and at a very basic level. If the assignment was intended, I suggest you inform the student that something fishy is going on.