Try to understand what's going on When you run it, a cursor reads each instruction left to right, top to bottom The cursor is stuck in the while loops Try typing in the code from one of the first two comments by Hanzo or me, you need those two WHILE statements in between every single print command, you are only doing both WHILE loops once, that's why it's not working like you are expecting.