Question 6
Consider the following flask application.
from flask import Flask, requestapp = Flask(__name__)
@app.route('/home')def home(): var_a = request.args.get('method') if var_a == "GET": return """ <body style="background-color: lightgray; color:purple;text-align: center;font-weight: bold;"> <p>IIT</p> <p>MADRAS</p> </body> """ elif var_a == "POST": return """ <body style="background-color: lightgray; color:purple;text-align: center;font-weight: bold;"> <p>IIT</p> <span>MADRAS</span> </body> """ else: return "Invalid Method"app.run(debug=True)If the application is running locally on http://127.0.0.1:5000 then which of the following statements are correct?