There should be no space between “…command:” and “move”.
Enter your command:move east
or it shows the commandnotfound error message.
There should be no space between “…command:” and “move”.
Enter your command:move east
or it shows the commandnotfound error message.
Are you sure? When you add the line to elicit input on page 224, a trailing space is included in the string printed out:
print("> Enter your command: ")
I had no space between “:” and “*”.
print("> Enter your command:")
It worked as described in the book, when I added a space.
print("> Enter your command: ")
Thanks for clarifying.
Nice! Thanks for reaching out.