a=[[1, 20], [2, 3]] b=[[[[[[1], 2], 3], 4], 5], 6] sum(b, a)
This error has nothing to do with the start parameter. There are two elements in list b . One of them is [[[[[1], 2], 3], 4], 5] , the other is 6 , and the list and int cannot be added together.
sum(a, b)
This addition:
[[[[[[1], 2], 3], 4], 5], 6] + [1, 20] + [2, 3]
Which works fine (since you just add lists to lists).
a=[1,2] b=[3,4] sum(a,b)
This is an attempt to add [3,4] + 1 + 2 , which again is impossible. Similarly, sum(b,a) adds [1, 2] + 3 + 4 .
What if the beginning is not a string, but not an integer?
sum cannot sum lines. Cm:
>>> sum(["a", "b"], "c") Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: sum() can't sum strings [use ''.join(seq) instead]