How to multiply the values of 2 lists respective of its index values? [Solved] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to multiply the values of 2 lists respective of its index values? [Solved]

Detailed explanation of my problem is in the code below 👇 https://code.sololearn.com/c3AnY8gfr7VG/?ref=app

26th Feb 2021, 1:42 PM
∆BH∆Y
∆BH∆Y - avatar
4 Answers
+ 8
https://code.sololearn.com/cb0Qm85umh4A
26th Feb 2021, 1:48 PM
David Ashton
David Ashton - avatar
+ 5
∆BH∆Y if(len(list1)==len(list2)): for i in range(len(list1)): list3.append(list1[i]*list2[i]) print(list3)
26th Feb 2021, 1:47 PM
Abhay
Abhay - avatar
+ 2
thank you for the answers David Ashton Abhay
26th Feb 2021, 1:52 PM
∆BH∆Y
∆BH∆Y - avatar
+ 2
Sorry sir, Jan Markus I don't have knowledge of python this much The code by sir David Ashton was easy to understand 😃
26th Feb 2021, 4:10 PM
∆BH∆Y
∆BH∆Y - avatar