Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
result.get(str, ''), result.get(int, 0) solution in Creative category for Sum by Type by flpo
def sum_by_types(items):
result = {}
for item in items:
t = type(item)
if t not in result:
result[t] = t()
result[t] += item
return result.get(str, ''), result.get(int, 0)
March 5, 2020
Comments: