I am trying to get the result for comb. But the following error follows. Can i get any suggestions to resolve the error?
import math
def chirp(n):
l=[]
for i in range(3141):
i1=i/10.
s=math.sin(n*i1)
l=l.append(s)
return l
l1=chirp(10,1)
l2=chirp(20,1)
l3=chirp(40,1)
comb= l1+l2+l3
print comb
Error:
Traceback (most recent call last):
File "test.py", line 17, in <module>
l1=chirp(10,1)
File "test.py", line 15, in chirp
l=l.append(s)
AttributeError: 'NoneType' object has no attribute 'append'