iterate over dictionary django

{% for key, value in data.items %}
    
         Key: {{ key }}  
         Value: {{ value }} 
    
{% endfor %}

Here is what the above code is Doing:
1. We’re using the for loop to iterate through the data dictionary.
2. We’re using the key and value variables to store the key and value of each item in the dictionary.
3. We’re using the key and value variables to print the key and value of each item in the dictionary.

Here’s what the output of the above code would look like:

Key: name
Value: John

Key: age
Value: 30

Key: country
Value: USA