Code:
print([some_data[name]['indices'] for name in some_data.keys()])
Output:
[[[0, 0], [1, 0], [2, 0], [2, 1]], [[3, 0], [3, 1], [1, 1], [0, 1]], ...]
Desired Output
[[0, 0], [1, 0], [2, 0], [2, 1], [3, 0], [3, 1], [1, 1], [0, 1], ...]
Trying this method told me that the 'list' object has no attribute 'result': One liner for extend loop python
Is there an alteration that I can apply to my code to obtain a one-line solution?
Thanks in advance