Hello! I want a User to put numbers in this text boxes and after pressing the "Update" button they load on a 2x2 list of lists, that will later be used to do operations with those numbers (like calculating the sum of a row or a column or the total sum). The design looks something like this:
The idea is that the user can update the list of lists anytime they want, just by pressing the update button.
I want to use a list of lists (In spanish they're called "Matriz") so I can teach that concept in school.
I bassicaly want to be able to do this pseudo-code, but I don't know how:
when "Update" button is pressed:
⠀⠀⠀matriz[1,1] = text_box1
⠀⠀⠀matriz[1,2] = text_box2⠀⠀⠀⠀//Note: the format is matriz[row,column]
⠀⠀⠀matriz[2,1] = text_box3
⠀⠀⠀matriz[2,2] = text_box4
My block-code looks like this at the moment:
So basically I don't know how to put two numbers on the index (índice on the second image) to replicate the matriz[n,n] way of selecting an element that I showed on the pseudo-code
Hope I explained myself haha, thanks in advance for reading!