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

creating_functions.py
def hello_student(name):
    print("Hello", name)

hello_student("Kelly")

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")