Question 20
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>Welcome to MAD I</h3>{% endblock %}base.html
<!DOCTYPE html><html lang="en"><head> <title>IITM</title></head><body> <h1 style="color: violet;"> IITM BS Degree </h1> {% block content %} {% endblock %}</body></html>What will be the rendered output for base URL if flask app is running locally on http://localhost:5000