Problem 57. Summing Digits within Text

Created by Cody Team in Community

Given a string with text and digits, add all the numbers together.


 Input str = '4 and 20 blackbirds baked in a pie'
 Output total is 24
 Input str = '2 4 6 8 who do we appreciate?'
 Output total is 20

Solution Stats

46.31% Correct | 53.69% Incorrect
Last solution submitted on Jun 20, 2019

Problem Comments

Solution Comments

Recent Solvers986

Suggested Problems

More from this Author95