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 trialJorge Grajeda
Python Development Techdegree Graduate 8,186 PointsI feel like I am missing something to completing this challenge I cannot figure what it is though
Can somebody walk me threw a little bit how to solve this problem because I reviewed the video and I feel lost.
def hello_student(name):
return("Hello " + name)
print(hello_student)
1 Answer
Robert Peters
3,728 PointsHi. You got the first part right, it's just the calling of the function at the end. It says to call the function, which would be:
hello_student()
But it takes an argument 'name' so it would be:
hello_student("Rob")
It then says to store that within a variable 'hello', so it would be:
hello = hello_student("Rob")
Hope this helps! The full code would be:
def hello_student(name):
return 'Hello ' + name
hello = hello_student("Rob")