Comment Comment by nine_k What. Python's `sum()` works on anything that defines `__add__`, which can be numbers, strings, lists, or your own custom classes. sum([[1, 2], [3, 4]], []) == [1, 2, 3, 4] parent nine_k 5 years ago