Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42512
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-04-01 15:12 -0700 |
| References | <d7343665-0b72-4424-89b0-89c5343acb82@googlegroups.com> <bba78541-ce2f-4f12-a4dc-aef352386ddf@googlegroups.com> <mailman.20.1364854047.17481.python-list@python.org> |
| Subject | Re: Help |
| From | khaosyt@gmail.com |
| Message-ID | <mailman.21.1364854348.17481.python-list@python.org> (permalink) |
On Monday, April 1, 2013 6:09:04 PM UTC-4, Mark Lawrence wrote: > On 01/04/2013 22:42, khaosyt@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?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Help khaosyt@gmail.com - 2013-04-01 14:02 -0700
Re: Help khaosyt@gmail.com - 2013-04-01 14:42 -0700
Re: Help Dave Angel <davea@davea.name> - 2013-04-01 18:28 -0400
Re: Help khaosyt@gmail.com - 2013-04-01 14:42 -0700
Re: Help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-04-01 23:09 +0100
Re: Help khaosyt@gmail.com - 2013-04-01 15:12 -0700
Re: Help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-04-01 23:29 +0100
Re: Help khaosyt@gmail.com - 2013-04-01 15:12 -0700
Re: Help Walter Hurry <walterhurry@lavabit.com> - 2013-04-01 23:56 +0000
Re: Help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-04-02 02:02 +0100
Re: Help Walter Hurry <walterhurry@lavabit.com> - 2013-04-02 23:41 +0000
Re: Help Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-01 23:42 +0000
Re: Help Roy Smith <roy@panix.com> - 2013-04-01 19:47 -0400
Re: Help khaosyt@gmail.com - 2013-04-01 16:55 -0700
csiph-web