Given a list x=[-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10] use a for loop to create a new list, y, that contains the value aSin(10a) for each value, a, in list x. Plot the results using plot(x,y).
I have...
x=[-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10]
for a in x:
print sin(a)*(10*a)
The code returns the correct sin values but I'm not sure how to get the values into a new list y..
Any help would be greatly appreciated.