Question 10
Consider the following Flask code:
File name: app.py
from flask import Flask, requestapp = Flask(__name__)
@app.route('/calculate')def calculate(): argv1 = request.args.get('x') argv2 = request.args.get('y') ### Missing code ###
app.run(debug=True)If the app is running on http://127.0.0.1:5000 and the calculate function calculates the sum of two integers then which of the following options should correctly replace the ### Missing code ### ?
return str(int(argv1)+int(argv2))
return int(argv1)+int(argv2)
return argv1+argv2
return str(int(argv1+argv2))