@@ -0,0 +1,325 @@
+#find sum of all the elements of the list%0A%0A#function definition%0Adef recSum(mylist):%0A    s = 0%0A    for elem in mylist:%0A        if type(elem) == type(%5B%5D):      #element of the list is also a list%0A            s = s + recSum(elem)%0A        else:%0A            s += elem%0A    return s%0A%0Al = %5B1,2,3,%5B4,5,6%5D,%5B7,8,%5D,9,10%5D%0Aprint recSum(l)%0A

sum of the list using recursion