python element wise multiplication list
# element-wise multiplication of x & y
>>>x = [1,2,3,4]
>>>y = [2,3,4,5]
>>>[a*b for a,b in zip(x,y)]
[2, 6, 12, 20]
python element wise multiplication list
# element-wise multiplication of x & y
>>>x = [1,2,3,4]
>>>y = [2,3,4,5]
>>>[a*b for a,b in zip(x,y)]
[2, 6, 12, 20]
multiply two list in python using lambda
list1 = [1, 2, 3, 4, 5]
list2 = [6, 5, 4, 3, 3]
Result = []
for i1, i2 in zip(list1, list2):
Result.append(i1*i2)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us