Simple Template
create templates folder in root of flask app:

save template.html file into templates folder:
and flask source code:<!doctype html>is salmon cool?{% if colour=="salmon" %}style="color:salmon;"how good is salmon!{% else %}style="color:blue;"you chose {{ colour }}{% endif %}
uses Jinja2 templatesfrom flask import Flaskfrom flask import render_templateapp = Flask(__name__)@app.route("/")def urlTriggerThis():return render_template('template.html', colour="salmon")app.run(host= '0.0.0.0')
challenges
- add image of coin face to coin flip app
- create an app that gives me a 3 x 3 visual grid of numbers 1 through 9. the ordering of the numbers is randomised every time i hit refresh