Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (Retired) Ins & Outs String Concatenation

Why does this happen?

After I do everything the instructor asks and I click enter in the console it comes back as "treehouse:~/workspace$"

6 Answers

Godswill: You need to create that file from the file menu it is used not in the console but in the working environment that is above that. You will see the file show up to the left in the grey area once you make a new file, rename it there.

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Can you tell me what you're doing that's "everything the instructor asks"?

Kenneth Love I entered the script, I went to the console and typed "python lumberjack.py" but it returns "treehouse:~/workspace$"

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

As Brett Burky said, make sure you've created the script using the File menu and then saved it, either through the File menu or by pressing cmd or ctrl and s, just like you would in most text editors on your computer.

If it's still not working after that, show us your script so we can look for any problems in it.

Brett Burky Kenneth Love It still won't work.

Brett Burky Kenneth Love I was in the hello.py section and I typed in the script then after that, I pressed ctrl + S but when I went to the console and typed "python hello.py" it wouldn't work.

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

What if you go up to the File menu in workspaces and choose "save" from there?

Kenneth Love Okay, I will try that later.