Welcome to the Treehouse Community
Looking to learn something new?
Everything I type on the Workspace Console comes back as "Undefined"
I'm following the instructions step-by-step on the video and every time I get:
Type "help", "copyright", "credits" or "license" for more information.
File "<stdin>", line 1
SyntaxError: invalid syntax
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'clear' is not defined
There is no inconsistency with the .py file name and what I'm typing. I've had this issue pop up before, I can't remember how to fix it and it's incredibly frustrating!
Thanks in advance
Steven Parker216,133 Points
Those are commands for the system, but you are giving them to the Python IDE (you already ran "python"). You can tell Python is running because the prompt looks like this
To get back to the system prompt, type "
exit()" to Python, or just type a Ctrl-D character. The system prompt will generally look something like this