Jul-02-2020, 10:52 PM
If you have several operations on the data, your way is fine. You can temporarily (or in a loop) assign it to a shorter name (like "a" in your example) and then do your work.
But if you just need the element, you can do it in one line instead of two with
But if you just need the element, you can do it in one line instead of two with
print(matrix_data["file2.txt"][1,1])