12. Using a list of lists in a function help


#1


I'm not sure exactly what I'm supposed to do on this exercise. I've been through a bunch of forum postings and read the hint but I'm still stuck. Anyone know what I'm doing wrong?


#2

You don't need to store the append back into the variable. append() already updates the list and it doesn't return anything. Just simply do

results.append(numbers)

#3

Nevermind it's fixed (I found a helpful forum post)


this is what worked for me. :slight_smile:


#4

A helpful or answer forum post? I think there is a difference, do you also understand now?


#5

yes i understand it now


#6

I personally wouldn't use range() like you did in the first for loop, but good that you understand now :slight_smile:


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.