flask minimul app

from flask import Flask
app = Flask(__name__)

def hello_world():
    return 'Hello, World!'

Here is what the above code is Doing:
1. We’re creating a new Flask object.
2. We’re using the @app.route decorator to tell Flask what URL should trigger our function.
3. We’re defining a function, hello_world(), which returns the message “Hello, World!”.
4. We’re telling Flask to run the function hello_world() when someone goes to the URL /.