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 (2015) Python for Beginners Call a function

Karen Hensley
PLUS
Karen Hensley
Courses Plus Student 577 Points

Typing in print("Hello, Treehouse") - does not validate. Get a "Bummer!" msg about typing in that exact thing.

Tried print("Hello, Treehouse") AND def hi_fx(): print("Hello, Treehouse")

Neither validate.

But the message tells me to try print("Hello, Treehouse"). But, that does not validate.

function.py
print("Hello,Treehouse"):

1 Answer

Hassaan Ahmad
Hassaan Ahmad
1,979 Points

Hey Karen, it isn't working because you are using that colon at the end. That may be required in some languages but Python doesn't require that. You'll surely master the syntax as you progress.

Karen Hensley
Karen Hensley
Courses Plus Student 577 Points

Thank you - the treehouse site grabbed a later try. Ultimately - def print(): print("Hello, Treehouse") worked