I think the problem here is that the statements in the body of the while loop are not indented. It works for me with the indentation, as shown in the screenshot attached.
8.8m questions
11.5m answers