A simple Flasher

Report a typo

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 /.

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
___

Create a free account to access the full topic