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

mitchell zappia
PLUS
mitchell zappia
Courses Plus Student 73 Points

I am counfused

I am typing the function exactly how it is displayed and it does not work. I have tried multiple variations all failed

function.py
Print("Hello,Treehouse")

3 Answers

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,696 Points

Capitalization counts, bud. Take another look at that print() function ...

mitchell zappia
mitchell zappia
Courses Plus Student 73 Points

Appreciate the quick response! As I said I have tried multiple variations the ex provided was one of them. When I typed it as it is displayed ie: print("Hello,Treehouse") the print portion turns red and the directions change and it says "the case (upper and lower) matters!". When the P in print is capitalized it no longer says that.

mitchell zappia
mitchell zappia
Courses Plus Student 73 Points

*when the p in print is NO longer capitalized. (sorry for the confusion)

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,696 Points

Gotcha. I guess I should have included punctuation, white space, and semicolons.

mitchell zappia
mitchell zappia
Courses Plus Student 73 Points

Here are the instructions for this challenge: Let's try something else! Again, you haven't done this yet, but you've seen it already. I need you to print something out for me.

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

I know I am missing something simplistic but if I could identify what I wouldn't be in python basics. It's python so like it said I'm not taking it too seriously! haha but you can see how this could be frustrating

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,696 Points

I don't give out straight answers, but I've given all the clues I can. Combining everything I suggested:

print("Hello, Treehouse")

They were very specific in their request.

mitchell zappia
mitchell zappia
Courses Plus Student 73 Points

Really guy? " Capitalization counts, bud. Take another look at that print() function ... Gotcha. I guess I should have included punctuation, white space, and semicolons." How is that helpful? That is ridiculous and extremely vague to someone as green as me especially in the second part because you're speaking in first person. How is what you should do beneficial to me? I understand you don't want to spoon feed people information but there was something SERIOUSLY wrong with the way the instructions were worded, and the suggestions after rechecking work was sending me in a completely different direction. That was literally the first function I have ever attempted to code and the fact you would not explain were I went wrong is crazy

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,696 Points

Sorry you feel that way, Mitchell. What can I explain? I never took the course, but the instructions explicitly told you what the expected output should be. And, the function is literally print();. I suggest you rewatch the videos until you grasp the concept and read any supplementary documentation you can find using the Googs. I don't know what else to tell ya. ¯_(ツ)_/¯

https://docs.python.org/3/library/functions.html#print

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,441 Points

Hi mitchell zappia! Thank you for your question.

I've tried correcting the capital Print in your solution:

print("Hello,Treehouse")

And also got the response:

'Bummer! Good try! Ensure you spelled the statement correctly. The case (upper and lower) matters! Should look something like: print("Hello, Treehouse")'

I agree this is a confusing reply. This hint is implying that capitalization or spelling is still the issue when it is actually the missing space.

Also in this hint, it gives the actual solution in the hint, but as a beginner it is understandable that you might not recognize the space as important.

I will report your finding as a suggestion to improve the challenge hint text. Treehouse is always looking for suggestions to improve their content.

Thanks for the feedback. Post back if you need more help. Good luck!!!