Python Functions, Packing, and Unpacking Getting Info In and Out of Functions Functions with Arguments and Returns

jayda hendrickson
jayda hendrickson
3,413 Points

Can someone tell me what's wrong with this code??

This code outputs the right value but it's still saying it's wrong
def hello_student(name):
    print("Hello", name)


1 Answer

You are supposed to return a value, not print it. Here:

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

hello = hello_student("Some name")