Список умножения элемента Python
# 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]
Thoughtless Tapir
# 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]
list1 = [1, 2, 3, 4, 5]
list2 = [6, 5, 4, 3, 3]
Result = []
for i1, i2 in zip(list1, list2):
Result.append(i1*i2)