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

Jorge Grajeda
Jorge Grajeda
1,068 Points

May somebody please elaborate on this question?

I've tried many things to solve this problem but I keep coming back to an error

creating_functions.py
def hello_student(name):
    val = name
    return val
print(val('Hello'))

2 Answers

Christian Beckett
Christian Beckett
11,119 Points

have you tried doing this?

def hello_student(name):
    return("Hello " + name)
Rick Gleitz
Rick Gleitz
41,869 Points

In Christian's return string (which is the way to go) the only adjustment needs to be a space after the o in Hello, like this: "Hello "