Write a program that receives a message from input and shows it to users with flash() and get_flashed_messages(). Use a view function that is routed to the main page /.
Advanced responses
A simple Flasher
Report a typo
Write a program in Python 3
from flask import Flask, flash, get_flashed_messages
app = Flask('main')
app.config['SECRET_KEY'] = 'Super Secrect'
message = None # your code here
#your code here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
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.