Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flask hello world

from flask import Flask

app = Flask(__name__)

@app.route('/')
def index():
    return 'Web App with Python Flask!'

app.run(host='0.0.0.0', port=81)
Source by pythonbasics.org #
 
PREVIOUS NEXT
Tagged: #flask #world
ADD COMMENT
Topic
Name
9+7 =