While loop output not appearing on jupyter lab or jupyter notebook

Solution 1:

It doesn't work because you never enter the while-loop, because x is not less than five.