See the default "Hello world" script on the Flask website:
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == "__main__": app.run()
I am very new to programming, so I donβt understand how this script can work - the hello() function is not called anywhere, so does Flask just display the output of the first function found? What if I want to display output from two or three functions on a page?
user886767
source share