Question: 2) Write a function called add(li1, li2) that takes two lists of integers of the same length as arguments, and returns a new list with

 2) Write a function called add(li1, li2) that takes two lists

2) Write a function called add(li1, li2) that takes two lists of integers of the same length as arguments, and returns a new list with the elements of li1 and li2 added together. For example if li1=[3,4,2] and li2=[4,6,1], then the call to add () should return the list [7,10,1]. li1 and li2 should not be modified

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!