Rearrange the lines to create a valid Flask application. Use a single indentation inside the function.
Flask Sessions
Order
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
session["name"] = name
@app.route("/set_name")
def set_name():
app.secret_key = "your secret key"
name = request.args.get("name")
app = Flask(__name__)
return "Name set"
from flask import Flask, session
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.