'How to access and print 2d array in template in Django?

I am new to django. I am trying to build a soduku solver in django. When the user inputs the soduku board, I am storing the board in a 9x9 2D list. After the user presses submit I want to print the solved 2D list on the site in a table.

Basically I want to access the list elements like

arr[1][2]

but django throws an error

Could not parse the remainder: '[0][1]' from 'arr[0][1]'

I know I can access elements by

arr.1

but can this be used for a 2d list?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source