Core Concept Mastery • Python Visual Series Module
The `return` keyword is used to send the result of a function's execution back to the place where it was called. It also terminates the execution of the function immediately.
def add(a, b):
return a + b
result = add(5, 3)
print(result)
We define add() with two parameters: a and b. The function computes their sum and uses "return" to send the result back to the caller.