18/18


#1

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

Add your function here

def flatten(list):
results=[]
for numbers in range(0,len(list)):
return numbers
for number in numbers:
results.append(number)
return results

flatten(n)


#2

Hi @bojanapocuca

Please provide a link to the lesson you're having an issue with.

From what I can see, you're referencing the length of a list that doesn't exist. Change list everywhere it appears to n since that's the list you have. In addition, you probably shouldn't have multiple lists inside the n list, unless that's what the lesson asks for.


#3

Hello!
This is the link.
Thank you!


#4

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