Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Sum by Type by ssk8
from typing import Tuple
def sum_by_types(items: list) -> Tuple[str, int]:
concats = ['', 0]
for item in items:
concats[type(item)==int] += item
return tuple(concats)
Feb. 22, 2021
Comments: