Question 2
Consider the following python code snippet “app.py”, the HTML files, “base.html” and “home.html” residing in “templates” folder.
app.py
from flask import Flask, render_templateapp = Flask(__name__)@app.route('/')def home(): return render_template('home.html')app.run(debug=True)home.html
{% extends "base.html" %}{% block content %}<h3>This is from home.html</h3>{% endblock %}base.html
<!DOCTYPE html><html lang="en"><head> <title>Document</title></head><body> <h3 style="color: blue;"> This is from base.html </h3> {% block content %} {% endblock %}</body></html>What will be the rendered output for base URL if flask app is running locally on http://localhost:5000