title: This site can’t be reached http://127.0.0.1:8000/hello using Flask as web framework
body: <p>I am trying to run a simple "hello world" code using flask version 1.1.1 and python 3.7. the server is running but the web page is not loading. Can anyone please help???</p>
  
  <pre><code>from flask import Flask
  app = Flask(__name__)
  
  @app.route('/hello')
  def hello_world():
      return "Hello world"
  
  if __name__ == '__main__':
      app.run(host='127.0.0.1',port=8000, debug=True)
  </code></pre>
  
  <p>Output is as below
  <a href="https://i.stack.imgur.com/WMw30.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WMw30.png" alt="enter image description here"></a>
  But the web page(<a href="http://127.0.0.1:8000/hello" rel="nofollow noreferrer">http://127.0.0.1:8000/hello</a>) displays "This site can’t be reached"</p>