How to display in Flask certain input fields depending on the value of variables

Solution
from flask import Flask, render_template, request


app = Flask(__name__)

@app.route("/1")
def hide_by_class():

    abc = {
        "a": str(request.args.get('a')),
        "b": str(request.args.get('b')),
        "c": str(request.args.get('c'))
    }

    return render_template('hide_by_class.html',  abc=abc)


@app.route("/2")
def hide_by_render():

    abc = {
        "a": str(request.args.get('a')),
        "b": str(request.args.get('b')),
        "c": str(request.args.get('c'))
    }

    return render_template('hide_by_render.html', abc=abc)


if __name__ == "__main__":
    app.run()



    
    Title



  {% for k, v in abc.items() %}
    {% if v == "1" %}
        
        
{% endif %} {% endfor %}



   
   Title
   



  {% for k, v in abc.items() %}
    
    
{% endfor %}

   
   Title
   



  
    
    



    
    Title