Skip to content

Exercises: Module 02 — Flask Fundamentals

Full exercise set to be written when this module is expanded. The stubs below give a preview of the exercise tier structure.


Instructions

Complete each exercise in order. Exercises increase in difficulty.


Easy Exercises (1–3)

Exercise 1

Difficulty: Easy Objective: Define routes with static and dynamic URL segments

Full exercise content to be added when module is expanded.


Exercise 2

Difficulty: Easy Objective: Read query parameters from a GET request

Full exercise content to be added when module is expanded.


Exercise 3

Difficulty: Easy Objective: Use Jinja2 to render a template with a variable

Full exercise content to be added when module is expanded.


Medium Exercises (4–6)

Exercise 4

Difficulty: Medium Objective: Implement template inheritance with a base layout

Full exercise content to be added when module is expanded.


Exercise 5

Difficulty: Medium Objective: Create a Blueprint and register it on the app

Full exercise content to be added when module is expanded.


Exercise 6

Difficulty: Medium Objective: Implement the application factory pattern

Full exercise content to be added when module is expanded.


Hard Exercises (7–8)

Exercise 7

Difficulty: Hard Objective: Build a multi-blueprint Flask application with shared configuration

Full exercise content to be added when module is expanded.


Exercise 8

Difficulty: Hard Objective: Implement custom error handlers (404, 500) with JSON responses

Full exercise content to be added when module is expanded.


Expert Exercise (9)

Exercise 9

Difficulty: Expert Objective: Design a Blueprint-based URL structure for a RESTful resource

Full exercise content to be added when module is expanded.