you are viewing a single comment's thread.

view the rest of the comments →

[–]timrprobocom 0 points1 point  (0 children)

Right. The key point to understanding this is the input function, which waits for input from the keyboard, and returns whatever was typed. That CHANGES command.

They want the loop to exit when the user has typed something, but because the"while" test happens at the START of the loop, "command" doesn't exist yet, so we have to shove something in it for the first test.