Using a list of lists in a function



i have understood all steps. but did not understand Third and Fourth steps. could any one help me in solving this program?


The inner loop cannot have the same iterator variable as the outer loop. What about nums in numbers?

results = results + nums

Only problem is nums is a number, not a list, so cannot be concatenated to a list. It can however be appended.


This i got when i correct my code.


thank you. i understood where i did mistake.