Like most popular open source projects, Flask has very good documentation, which is available at http://flask.pocoo.org/docs/0.10/. If any of the examples are unclear, you can be sure to find the answer on the project documentation.
Our first Flask application is contained in one single file, chapter9_1.py:
from flask import Flaskapp = Flask(__name__) ...