Search⌘ K

Hello World!

Explore building your first Flask application by setting up a basic script that includes importing modules, creating a Flask object, defining view functions, and assigning URL routes. This lesson teaches you to develop a working Hello World Flask app with essential components for web development.

Initial set-up for Flask

To run a Flask application on Educative, we do not need to set up anything. All code will run inside the special environment within the browser. It’s as easy as that!

Educative is designed in such a way that we do not get distracted by dependencies and get right into what is essential: the learning.

Writing our first application

The simplest Flask application can be made using only one script! Let us call this file app.py. We will break down the program into steps and discuss one. ...