I created a list in list (so I can understand data update/entry in a DB style table structure with rows and columns).
I can add new row, but I am trying to figure out how I can update data in specific column.
Here's how my list in list look, this one has 3 rows and 2 columns.
I wanted to update 3rd row, 2nd column (the age of Oliver), my code reads the update from textbox1 and textbox2 and the following shows the outcome.
The ploblem in your code is that you have a list of lists so selection index gives you
(Oliver 45) and in that list index for 45 is 2 . Using dictionaries is a good idea but here is how you can do it
It's very tacky; @dora_paz's method is way more reliable. Also, since we have no idea what OP is trying to achieve, it's better not to jump to conclusions.