possibly skip some best practices:
if __name__ == "__main__":
I think this is a good idea because the explanations for those are not necessary for learning flask or to make it run.
This runs just fine:
from flask import Flask
app = Flask('my_app')
@app.route("/")
def hello():
return "Hello World!"
app.run(host="0.0.0.0")