Returning wrong result


#1

n = [[1, 2, 3], [4, 5, 6, 7, 8, 9]]

Add your function here

def flatten(lists):
results = []
for numbers in range(0, len(lists)):
results.append(numbers)
return results
print flatten(n)

my code returned the wrong answer being [0, 1] instead of [1, 2, 3, 4]
I'm not sure whats wrong but I think it may be my for loop


#2

Hi
let me give you just a hint. Check again the example in this excercise

list_of_lists = [[1,2,3], [4,5,6]]

for lst in list_of_lists:
    for item in lst:
        print item

there are two FOR iterations used.
Hope this help you a bit.