Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59287
| From | Dave Angel <davea@davea.name> |
|---|---|
| Subject | Re: Please help with this |
| Date | 2013-11-13 00:45 -0600 |
| References | <6ade7311-fe93-4747-959b-e9b947714b00@googlegroups.com> <6ade7311-fe93-4747-959b-e9b947714b00@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2527.1384325096.18130.python-list@python.org> (permalink) |
On Tue, 12 Nov 2013 20:18:58 -0800 (PST), saad imran <saad.imran98@gmail.com> wrote: > Could you point out any errors in my code: > que1 = "4481 *2" > ans1 = "8962" > que2 = "457 * 21" > ans2 = "9597" These values should all be in a single named structure, probably a list of tuples. Then all that duplicated code could be condensed into a single block. Is that the error you wanted us to find? -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Please help with this saad imran <saad.imran98@gmail.com> - 2013-11-12 20:18 -0800
Re: Please help with this Gary Herron <gary.herron@islandtraining.com> - 2013-11-12 20:34 -0800
Re: Please help with this Ben Finney <ben+python@benfinney.id.au> - 2013-11-13 16:54 +1100
Re: Please help with this Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-13 06:02 +0000
Re: Please help with this Dave Angel <davea@davea.name> - 2013-11-13 00:45 -0600
Re: Please help with this Steven D'Aprano <steve@pearwood.info> - 2013-11-13 06:49 +0000
Re: Please help with this mkharper <mkharper@gmail.com> - 2013-11-13 00:53 -0800
Re: Please help with this mkharper <mkharper@gmail.com> - 2013-11-13 01:02 -0800
Re: Please help with this mkharper <mkharper@gmail.com> - 2013-11-13 03:09 -0800
Re: Please help with this Peter Otten <__peter__@web.de> - 2013-11-13 13:30 +0100
csiph-web