How can I do for-loop like this in Django?
list = ['AAA', 'BBB', 'CCC']
==========================================
{% for x in len(list), for y in list %}
{{x}}: {{y}}
{% endfor %}
Severity: Notice
Message: Undefined index: userid
Filename: views/question.php
Line Number: 195
Backtrace:
File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler
File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view
File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once
How can I do for-loop like this in Django?
list = ['AAA', 'BBB', 'CCC']
==========================================
{% for x in len(list), for y in list %}
{{x}}: {{y}}
{% endfor %}