Python - 15

Python - 15: Returning Values From Functions

Functions can send information back using the return keyword.

✦ Python Editor
▶ Output

👀 Show Example Solution
def multiply(a, b):
    return a * b

answer = multiply(4, 6)

print(answer)

def greeting(name):
    return "Hello " + name

message = greeting("Taylor")

print(message)