Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
sum map lambda solution in Clear category for Sum Numbers by kdim
def sum_numbers(text: str) -> int:
return sum(map(lambda x: int(x) if x.isdigit() else 0, text.split()))
Jan. 16, 2021
Comments: