I have a 2D array that prints out the following:
[[0, {'dt_name': 'Go'}], [1, {'dt_name': 'Stop'}]]
I want to iterate through this list, so that I can retrieve the index value (first element) if dt_name is Go for example. I.e. return should be 0. If dt_name is Stop, then return is 1.
How can I do this?