18 using a list of list in a fucntion


stuck of combining the 2 list in a fucntion


Can you include your code and which part you don't understand?


I'm also stuck a little. My code look slike this now.

n = [[1, 2, 3], [4, 5, 6, 7, 8, 9]]
def flatten(lists):
for numbers in lists:
for item in numbers:
results+= numbers.append(item)
return results

print flatten(n)


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