Help

khaosyt at gmail.com khaosyt at gmail.com
Mon Apr 1 18:12:20 EDT 2013


On Monday, April 1, 2013 6:09:04 PM UTC-4, Mark Lawrence wrote:
> 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

How do I go about storing them in a list?



More information about the Python-list mailing list