Question 11
Consider the following Flask code:
File name: main.py
import sysfrom flask import Flask
app = Flask(__name__)
def do_product(): if len(sys.argv) > 1: nums = [int(x) for x in sys.argv[1:]] product = 1 for n in nums: product *= n return product return None
@app.route("/")def index(): result = do_product() return f"<h3>Product is: {result}</h3>"
app.run(debug=True)Choose the different ways of executing “main.py” and rendering results when the app is running on http://127.0.0.1:5000?