I need to use for SymPy operations a number of variables that depend on other parameters in the code. As I understand, a dictionary is used normally when the number of variables is not known in advance. However, SymPy does not allow to declare dictionary variables (say, d[1][1]) symbols and use them in symbolic operations like deriving expressions with respect to them.
What would be a proper solution for this situation?