I'm new to Flask. When I came across basic Flask example(below code), I stuck with the uncertainty: what is the need to use @
before variable app. I tried running app while removing @
, but I can't. If it is some very basic thing that I'm asking about, please comment.
from flask import Flask, escape, request
app = Flask(__name__)
@app.route('/')
def hello():
name = request.args.get("name", "World")
return f'Hello, {escape(name)}!'