Help
Mark Lawrence
breamoreboy at yahoo.co.uk
Mon Apr 1 18:09:04 EDT 2013
On 01/04/2013 22:42, khaosyt at gmail.com wrote:
> Self-bump
>
It's considered polite to wait for at least 24 hours before bumping a
question. You might have got more answers if you'd given a decent
subject line rather than "Help".
As it happens all you need do is loop around the string that is input,
converting every digit to an integer and storing them in a list, then
call the builtin sum function against the stored list.
You'll probably also need a try/except to handle any duff input.
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
More information about the Python-list
mailing list