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.

Python Python Basics (2015) Python for Beginners Call a function

I'm stuck on the 2nd question in python basics ("Hello, Treehouse")'. What's wrong

Use the print() function to print the string "Hello, Treehouse"

function.py

3 Answers

Hi Thomas,

That should look like:

code.py
print("Hello, Treehouse")

I can't see what you've done so I hope that helps!

Steve.

That is exactly what I did and passed that part but it keeps going back to it. I think that there's something wrong and when you ask for direction you will be lucky to get it 6 hours later. I can't learn like that I think I need hands on classes.

Hi Thomas,

I just tried that code and it worked for me. A direct copy/paste works fine - the challenge will be looking for a very specific output, so any changes in capitalisation, punctuation or spacing may cause the code to fail. The tests are looking for the precise string, "Hello, Treehouse" inside of the print() parentheses.

Steve.

I tried the above and I still got an error message

Hi Pawel,

Can you post your code and the error message, please?

Steve.

Hi Steve. Sorry for not responding sooner. I got the thing working. Thanks.

:+1: