I have a flask application running. If i need to pass the values from '/configs' to function 'data' and the result from the function data has to be returned to "/sumcollect" and has to be appended to the list named 'value'. How can we pass values like this.
def data(a,b):
sum = a+b
@app.route("/configs")
def configs():
a = 10
b = 20
data(a,b)
@app.route("/sumcollect")
def sumcollect():
value = [10,20]