When I run the code:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "Hello, world!"
if __name__ == '__main__':
app.run(debug=True)
I get the string "Hello, world!" in the chrome browser, but when I change the code:
return "Hello, world!"
to:
return "Hello"
The browser also shows the "Hello, world!" not the "Hello".
How does that happen?