Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
console wont run code even though no syntax errors. Next line just says. treehouse:~/workspace$ python hell
console worked previously when practicing print function, variables and would print code logged back in and when i try to print code next line just says. treehouse:~/workspace$ python hello.py
Mel RumseyTreehouse Staff
Hi there majak lual! Are you still in the shell or have you left the shell and are trying to run a file?
If you are trying to run a python file, you need to make sure that you are out of the python shell. You'll know if you are in the shell because you'll see
>>>. You can escape the shell by typing
exit(). If you want to get back in the shell you can type
try typing treehouse:~/workspace$ python shell
Don't forget to save the written code with ctrl + s