Sorting the app

Report a typo

Sort the lines of code so that they can be a part of an application called my_app. If accessed through a browser, it should display the first-level header with the following text: Welcome to the Django! and a second-level header saying We take it day by day!.

First, you need to import the necessary modules, then, there is logic, and routing, and after that, you need to run the application.
Put the items in the correct order
from flask import Flask
app.run()
def main():
app = Flask('my_app')
@app.route('/')
return '<h1>Welcome to the Django!</h1><h2>We take it day by day!</h2>'
___

Create a free account to access the full topic