multlist
def multlist(a,b)
Algorithm
Utils : A point by point list multiplier
Parameters |
Type |
Description |
a |
int/float list |
The list to multiply |
b |
int/float list |
The list to multiply |
- Returns
int / float list : The computed point by point multiplication
Source Code
res = []
if(len(a)!=len(b)):
return []
else:
for i in range(0,len(a)):
res.append(a[i]*b[i])
return res