return (Python)
The return statement sends a value back from a function to the code that called it and immediately ends the function. A function with no return gives back None.
Python
Examples
Python
def square(n):
return n * n
result = square(4)
print(result)Output:
16