Check out example codes for "access particular array index in html template django". It will help you in understanding the concepts better.

Code Example 1

Remember that the dot notation in a Django template is used for four different notations in Python. In a template, foo.bar can mean any of:

foo[bar]       # dictionary lookup
foo.bar        # attribute lookup
foo.bar()      # method call
foo[bar]       # list-index lookup

Learn ReactJs, React Native from akashmittal.com