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

I typed: print("Hello, Alana" print ("Craig is learning Python") Console= Hello, World. What did I do wrong?

Why am i not getting the same output as the instructor?

Megan Amendola
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Megan Amendola
Treehouse Teacher

Hi! It's a little hard to tell from your post. After you made changes to the code, did you save the file before running it? I know. it sounds silly but I forget to do this all the time :)

Hi Megan. I didn't save since I cannot use my workspace in Treehouse. The codes don't run, and I am not sure as to why.

Megan Amendola
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Megan Amendola
Treehouse Teacher

Can you explain more about what's happening with your workspaces? If you have any screenshots, you can email them to us at help@teamtreehouse.com so we can help figure this out.

  • Are you able to open workspaces?
  • Are you able to make changes to the files in workspaces? -> When you edit the files, you will need to save the file. To save your changes either File > Save or use the keyboard command, ctrl + s (windows) / cmd + s (mac).
  • Are you able to run the file w/ python filename.py where filename.py is the name of the file you're trying to run?

2 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

It looks like to me that you may have forgotten to close out one of your strings that you're passing into print().

print("Hello, Alana") 
print("Craig is learning Python") Console= Hello, World. What did I do wrong?

Hopefully, this code will help you get further forward in your course. :)

Thank you, Jonathan...

Hello Megan,

I am able to open the Python workspace. Yet, when I tried to type something, I kept getting an error.

Alana

Megan Amendola
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Megan Amendola
Treehouse Teacher

Let's also try testing this on our end to see if we can duplicate the issue. If you open the workspace you are having an issue with and send us the id#, the number at the end of the URL in the address bar of the workspace, to our wonderful support team at help@teamtreehouse.com