Program - Calculate the pair-wise product of two lists
Topic: Program - Calculate the pair-wise product of two lists
Solution
list1 = [1, 2, 3] list2 = [5, 6, 7] final = [list1[i]*list2[i] for i in range(len(list1))] print(f"pair-wise product of two lists:{final}")
List all Python Programs