What is Flask?
A lightweight web framework for Python that provides essentials for building web applications without imposing structure.
Flask is a micro-framework — it provides URL routing, request handling, templates (Jinja2), and development server, but leaves choices like database, forms, and authentication to the developer.
A basic Flask app is just a few lines: create an app, define routes with @app.route(), and return responses. Extensions add functionality: Flask-SQLAlchemy (ORM), Flask-Login (auth), Flask-WTF (forms). Flask is ideal for APIs, prototypes, and applications where you want full control.