Hello Everyone.. I just have a little doubt,can somebody explain it?
my code is:
n = [[1, 2, 3], [4, 5, 6, 7, 8, 9]]
Add your function here
for numbers in lists:
for members in numbers:
it works fine,but why can't i run the program when line is:
results = results.append(members)
it throws error!
Traceback (most recent call last):
File "python", line 12, in
File "python", line 7, in flatten
AttributeError: 'NoneType' object has no attribute 'append'
Can somone explain why can't i store the results.append(members)