I am trying to learn python and I am going through the book programming python. I know java pretty well so I decided to give python a try as well. I am going through an example using loops and I am confused about what is happening in this code
for person in people:
for (name, value) in person:
if name == 'name': print(value)
I know that there are two loops and person is incremented by 1 each time it loops through, what i dont understand is what is happening to the (name, value) in the second loop. Could someone please explain to me what is happening?