Return Statement

WhenΒ 
weΒ 
callΒ 
aΒ 
function,Β 
weΒ 
canΒ 
getΒ 
aΒ 
valueΒ 
fromΒ 
itΒ 
asΒ 
anΒ 
outputΒ 
usingΒ 
theΒ 
return
Β 
statement
.Β 
WeΒ 
canΒ 
storeΒ 
thisΒ 
valueΒ 
inΒ 
aΒ 
variableΒ 
andΒ 
useΒ 
itΒ 
outsideΒ 
theΒ 
function.
MostΒ 
in-built
Β 
functionsΒ 
returnΒ 
aΒ 
valueΒ 
whenΒ 
weΒ 
useΒ 
them,Β 
likeΒ 
len(),Β 
min(),Β 
max(),Β 
etc.
def function_name():
    <function body>
    return variable_name
value = function_name()
def add(num1, num2):
    total = num1 + num2
    return total
answer = add(1,2)
print(answer)