I need to calcualte the scalar product given two lists of numbers...
v1=input("Insert the first vector: ")
v2=input("Insert the second vector: ")
for i in range(len(v1)):
v3=v1[i]*v2[i]
print v3
this code will multiplie all the numbers in list v1 and the numbers in list v2 but the result doesn't come in a list...how can i make a list out of the results?how can i add all the numbers in a list?
i would apreciate if someone could help me...
thanks in advance