Q. Which template tag is used for looping in Django templates?

  • (A) {% while %}
  • (B) {% repeat %}
  • (C) {% loop %}
  • (D) {% for %}
πŸ’¬ Discuss
βœ… Correct Answer: (D) {% for %}
Explanation: `{% for item in list %}` is the correct syntax for loops in Django templates.
Explanation by: Mr. Dubey
`{% for item in list %}` is the correct syntax for loops in Django templates.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
132
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate