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 trialArmando Garcia
4,252 Pointsdef hello_student(name): print("Hello ", name) Im not sure how this is incorrect for the directions given
so it says to write a function hello_student and the argument passed should be name, and it should return the printed statement of "hello" followed by the name variable. Ive tested this on PyCharm and it works no problem, but the test wont let me continue without it
def hello_student(name):
print("Hello ", name)
2 Answers
boi
14,242 PointsThe challenge requires 2 things from your solution, the first is to print out a string
not a tuple
, the second, it wants you to return
the value not print
it.
your solution does the opposite, your output is a tuple
not a string
.
def hello_student(name):
print("Hello ", name)
#Output
>>> ("Hello ", "name")
Output should be "Hello name" not ("Hello ", "name"). Tag me if you need me to show you the complete solution.
Armando Garcia
4,252 PointsWhat does your function look like MJ?
Armando Garcia
4,252 PointsArmando Garcia
4,252 PointsThank you so much, your a gem lol. I knew there was some minor detail I was overlooking in the question itself. I just could not figure it out for some reason.
MJ IT IS
Courses Plus Student 273 PointsMJ IT IS
Courses Plus Student 273 PointsBro i still not get it 😕