🌐Flask
Also known as Flask Framework, Python Flask
A small Python web framework. It gives you the basics, and you add the rest.
Think of it like
Think of it like an empty workbench. It is small and tidy, and you bring the tools you want.
Example
Jack builds a small API for his weather sensor with Flask. The whole app is one file of 30 lines.
Why it matters
Definition
Example code
python
from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
return "Hi Emma"Common mistake
Key takeaways
- 1Just the basics. Routes, requests, templates.
- 2Add as you go. Pick your own extras.
- 3Easy to read. Great for learning.