|
|
|
|
|
by vostok
3184 days ago
|
|
> But, as another practical example: "sum" in Python works for numbers, but I've seen folks assume that it works for anything that you can use + on, and so try and use strings with it. I don't know python very well, but aren't string special cased? It does work with lists. sum([[1,2,3],[4,5,6]], [])
|
|