# return sum_of_list(lst)+ lst.pop() #this gives error(maximum recursion depth reached) as it enters infinite loop return lst.pop()+sum_of_list(lst) ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results