Question 22
Consider the following Python code snippet.
from flask import Flask, abort, redirect, url_for, render_templateapp = Flask(__name__)
data_science = ['ML-techniques','ML-foundations','PDSA']programming = ['Java','MAD-I', 'System-Commands', 'ML-practices']
@app.route('/courses/<course>')def find_course(course): if course in data_science: return f"<h2>Data Science course found, {course}!</h2>" elif course in programming: return f"<h2>Programming course found, {course}!</h2>" else: abort(401)
@app.errorhandler(401)def page_not_found(error): return "<h2>No course found!<!h2>"
app.run()If the above application is running locally on URL: http://127.0.0.1:5000, select the correct statement(s).