I wanted to ask, if it is possible to write the below function below, If so how can I do it ?
def builder(x):
def perform_addition(y):
return x+y
return perform_addition
result = builder(6)
print(result(8))
I wanted to ask, if it is possible to write the below function below, If so how can I do it ?
def builder(x):
def perform_addition(y):
return x+y
return perform_addition
result = builder(6)
print(result(8))