from flask import Flask cpt=0 app = Flask(__name__) @app.route('/') def index(): return 'Hello world' ''' global cpt chaine = 'Hello world cpt='+str(cpt) cpt=cpt+1 return chaine ''' app.run(debug=True, host='0.0.0.0', port=5000)