title: Partial Output while running python using flask
body: <p>I am using flask for the first time, was doing some tutorials from youtube. I rechecked the code but didn't solve. The output of the last codes which is in "for" is not printing </p>
  
  <p>Python code:</p>
  
  <pre><code>from flask import Flask, render_template
  
  app = Flask(__name__)
  
  
  @app.route('/')
  def hello():
      return 'Hello, World!'
  
  
  @app.route('/about')
  def about():
      return 'The About Page'
  
  
  @app.route('/blog')
  def blog():
      posts = [{'title': 'Technology in 2019', 'author': 'Sreeram'},
               {'title': 'Expansion of oil in Russia', 'author': 'Bob'}]
      return render_template('blog.html', author='bob', sunny=True)
  
  
  @app.route('/blog/&lt;string:blog_id&gt;')
  def blogpost(blog_id):
      return 'This is blog post number' + (blog_id)
  
  
  if __name__ == '__main__':
      app.debug = True
      app.run()
  </code></pre>
  
  <p>html code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;blog&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h2&gt; Welcome to this blog! &lt;/h2&gt;
  &lt;p&gt; I am Sreeram, the author of this blog &lt;/p&gt;
  {% if sunny %} --&gt;
  &lt;p&gt; Today it is sunny&lt;/p&gt; --&gt;
  {% else %} --&gt;
  &lt;p&gt; Today it is rainy&lt;/p&gt; --&gt;
  {% endif %} --&gt;
  
  {% for post in posts %}
      &lt;h2&gt;{{post.title}}&lt;/h2&gt;
      &lt;h3&gt;Author : {{post.author}}&lt;/h3&gt;
  {% endfor %}
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am getting output like this:</p>
  
  <p><a href="https://i.stack.imgur.com/pY9kq.png" rel="nofollow noreferrer">Output</a></p>