I'm pretty new to Python and am trying to work through a list of lists.
Say I have:
myList = [[1,2,3,4],[10,11,12,13],[29,28,27,26]]
and a function called myFunction
I could write:
for x in myList:
for y in x:
myFunction(y)
However, that would just call myFunction on each individual item in all the sublists. How would I incorporate something that I could also call when I finish up all the items in each sublist (e.g. I would call 1, 2, 3 and 4, and then the loop would realize it is at the end of the sublist and I could call that sublist).
Thanks so much!