Workout #29: Add Numbers
Oct 16, 2021
Our function (sum_numbers) will take a string as an argument; for example
10 abc 20 de44 30 55fg 40
Given that input, our function should return 100. That’s because the function will ignore any word that contains nondigits.
TRY IT YOURSELF
ANSWER
https://colab.research.google.com/drive/10GHUAZscNKJxXaApjxeb-PWVI8TUBm3I?usp=sharing