return
is a builtin method which returns a value from a function. The function is executed and returns a value, here's an example:def add(x, y): return x + yIt takes x and y, then returns their value added together. So they cannot be used outside functions.
print(add(3, 6))
Output:9