Can someone explain me this >>> def f(l): if l == []: return [] else: return f(l[1:]) + l[:1] # <= cant figure this, how is all sum at the end?
thanks! -- http://mail.python.org/mailman/listinfo/python-list
Can someone explain me this >>> def f(l): if l == []: return [] else: return f(l[1:]) + l[:1] # <= cant figure this, how is all sum at the end?
thanks! -- http://mail.python.org/mailman/listinfo/python-list