Consider the following nested list:
nested_list = [[1, "adam", 20],
[2, "lucy", 40],
[3, "mary", 50]]
I would like to do the following conditions for example:
Search '3' keyword, if it is found then check second element is "mary", then update third element.
Pseudo:
if '3' is found in nested_list then
if index[1] == "mary" then
index[2] = 50 + 10 (update)