Question 4
Consider the following flask app.
from flask import Flaskapp = Flask(__name__)
@app.route('/post/<int:id>')@app.route('/post/<string:id>')def post(id): return f"Post ID: {id}"
@app.route('/post')def all_posts(): return "All posts"
if __name__ == "__main__": app.run()What will be the output on the browser, if you visit 127.0.0.1:5000/post/23?
Post ID: 23
"All posts"
404 Not Found
Flask throws AssertionError