Put in order · Python course · Module 5: Flask and Web Apps

Minimal Flask application

Arrange the code of a minimal Flask application in the correct order:

Items to put in order

  • from flask import Flask
  • def home(): return 'Hello Safari!'
  • if __name__ == '__main__': app.run()
  • @app.route('/')
  • app = Flask(__name__)

You can check the correct answer by solving this task in the CodeWorlds game.