On 01/04/2013 23:12, khao...@gmail.com wrote:
On Monday, April 1, 2013 6:09:04 PM UTC-4, Mark Lawrence wrote:
On 01/04/2013 22:42, khao...@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

How do I go about storing them in a list?


Read this http://docs.python.org/3/tutorial/introduction.html#lists

--
If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython.

Mark Lawrence

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to