Question: What does the following function call return? def sum _ lst ( lst ) : output = [ ] my _ sum = 0 for

What does the following function call return? def sum_lst(lst): output =[] my_sum =0 for i in range(len(lst)): if i %2==0: my_sum += lst[i] else: my_sum += i return output.append(my_sum)>>> sum_lst([2,4,6]) Group of answer choices 129 None None of the mentioned

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!