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 Functions, Packing, and Unpacking Getting Info In and Out of Functions Functions with Arguments and Returns

Write a function called hello_student. This function should receive one argument, name. This function should return one

How I can fix my code:

def hello_student (name):
    return 'Hello' + name

hello_student ('Usman')

9 Answers

Hi Tatenda, not sure if you managed, but you have to write 'Hello ' not 'Hello'. notice the space between the last "o" and '

This will pass

def hello_student(name):
   return 'Hello ' + name

def hello_student(name): return 'Hello ' + name


i did this but its not working

def hello_student(name): return 'Hello' + name

print(hello_student ('Tatenda'))

it keeps saying double check spelling but everythings okay


For task 1 there should be a space after 'Hello '

check your indentation and try using double quotes when calling your function

def hello_student(name): return 'Hello ' + name


Jonathon Tucker
Jonathon Tucker
1,526 Points

def hello_student(name): return('Hello {}'.format(name))


worked for me :)

Aaron Brown
Aaron Brown
3,676 Points

This worked for me :)

def hello_student(name): val = "Hello " + name return val


Hi Tatenda!This is how i got the question correct.

def hello_student(name): return 'Hello ' + name


make sure u indent spaces after the colon