A

Admin • 833.24K Points
Coach

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

  • (A) {% while %}
  • (B) {% repeat %}
  • (C) {% loop %}
  • (D) {% for %}
  • Correct Answer - Option(D)
  • Views: 33
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

`{% for item in list %}` is the correct syntax for loops in Django templates.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.