Getting Started with Flask and Python Technology

Getting Started with Flask and Python

📅 June 30, 2026 🏷 Technology

A beginner-friendly introduction to building web applications with Flask.

Introduction

Flask is a lightweight web framework for Python. It is designed to be simple and easy to use, yet powerful enough to build complex web applications.

Installation

Install Flask using pip:

pip install flask

Your First App

Create a file called app.py and add the following code:

from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello, World!"

Run it with flask run and visit http://localhost:5000.