Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started