[Tutor] Adding numbers within a string
hell gates
hellgatez1 at yandex.com
Wed Oct 12 05:52:16 EDT 2016
You can write your own str.split or just use while loop.
12.10.2016, 15:12, "LQ Soh" <sohlq710 at gmail.com>:
To whom it may concern,
Can someone enlighten me as to how you can create a function such
that sum_numbers('10 5 8'), when run, will give an answer of 23, without
using str.split() and using a for loop
_______________________________________________
Tutor maillist - [1]Tutor at python.org
To unsubscribe or change subscription options:
[2]https://mail.python.org/mailman/listinfo/tutor
References
Visible links
1. mailto:Tutor at python.org
2. https://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list