Question: Write in python a function smallestSumthat accepts two lists of the same length (assume the lists have the same length all the time).Thefunction shouldfind the
Write in python a function smallestSumthat accepts two lists of the same length (assume the lists have the same length all the time).Thefunction shouldfind the smallest possible sumfor the entries in the corresponding positions, i.e. the same index in two lists.The function should return this value.Sample Inputl1 = [0,1,8,12,65,34534]l2= [120,2,4,55,323,12]Expected Output3 ***Hint: 1+2=3 (the min index for these numbers is 1)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
