Is it right? It's not running in the console


#1

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

Add your function here

def flatten(lists):
results = []
for numbers in lists:
for items in numbers:
results.append(numbers)
return results

print flatten(n)


#2

What you posted does indeed not run

But I suspect that has more to do with not sharing an intact copy than anything elseā€¦


#3

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