loading
open in
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Open the URL in another tab, and then go to /hello/yourname'

@app.route('/hello/<name>')
def hello_name(name):
    return 'Hello '+ name + '!'

if __name__ == '__main__':
  app.run(host='0.0.0.0')