I have a dictionary
data = {\'sok\': [ [1, 10] ], \'sao\': [ [1, 10] ],\'sok&sao\':[ [2,20]] }
How Can I (Loop trough Dictionary ) pres
You can use the dict.items() method to get the dictionary elements:
dict.items()
author qty Amount {% for author, values in data.items %} {{author}} {% for v in values.0 %} {{v}} {% endfor %} {% endfor %}