Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99369
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-11-24 08:59 -0800 |
| References | <133829df-f57f-442f-9dbf-b22b22f656ae@googlegroups.com> <n31qv3$4en$1@dont-email.me> <mailman.119.1448375356.2291.python-list@python.org> |
| Message-ID | <1900b12c-eb55-4fc5-a45f-b134bf8d36db@googlegroups.com> (permalink) |
| Subject | Re: Returning a result from 3 items in a list |
| From | Ned Batchelder <ned@nedbatchelder.com> |
On Tuesday, November 24, 2015 at 9:29:30 AM UTC-5, Mark Lawrence wrote:
> On 24/11/2015 14:07, Denis McMahon wrote:
> > On Tue, 24 Nov 2015 02:04:56 -0800, Cai Gengyang wrote:
> >
> >> Here's a dictionary with 3 values :
> >>
> >> results = {
> >> "gengyang": 14,
> >> "ensheng": 13, "jordan": 12
> >> }
> >>
> >> How do I define a function that takes the last of the 3 items in that
> >> list and returns Jordan's results i.e. (12) ?
> >
> > You open a web browser and google for "python dictionary"
> >
>
> Ooh steady on old chap, surely you should have fitted the bib, done the
> spoon feeding and then changed the nappy? That appears to me the
> preferred way of doing things nowadays on c.l.py, rather than bluntly
> telling people not to be so bloody lazy.
Mark and Denis, if you are having a hard time with newcomers to this list,
perhaps you need to find another list to read?
Yes, Cai Gengyang could do more research before asking questions. But
your response does nothing to improve the situation. It's just snark
and bile, and does not exemplify the Python community's culture.
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for our language.
What you can do for our language is put a better foot forward.
--Ned.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Returning a result from 3 items in a list Cai Gengyang <gengyangcai@gmail.com> - 2015-11-24 02:04 -0800
Re: Returning a result from 3 items in a list Chris Angelico <rosuav@gmail.com> - 2015-11-24 21:14 +1100
Re: Returning a result from 3 items in a list Cai Gengyang <gengyangcai@gmail.com> - 2015-11-24 02:27 -0800
Re: Returning a result from 3 items in a list Peter Otten <__peter__@web.de> - 2015-11-24 11:35 +0100
Re: Returning a result from 3 items in a list Cai Gengyang <gengyangcai@gmail.com> - 2015-11-24 02:47 -0800
Re: Returning a result from 3 items in a list Chris Angelico <rosuav@gmail.com> - 2015-11-24 22:05 +1100
Re: Returning a result from 3 items in a list Cai Gengyang <gengyangcai@gmail.com> - 2015-11-24 03:06 -0800
Re: Returning a result from 3 items in a list Peter Otten <__peter__@web.de> - 2015-11-24 11:32 +0100
Re: Returning a result from 3 items in a list Denis McMahon <denismfmcmahon@gmail.com> - 2015-11-24 14:07 +0000
Re: Returning a result from 3 items in a list Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-11-24 14:28 +0000
Re: Returning a result from 3 items in a list Ned Batchelder <ned@nedbatchelder.com> - 2015-11-24 08:59 -0800
Re: Returning a result from 3 items in a list Cai Gengyang <gengyangcai@gmail.com> - 2015-11-25 02:26 -0800
Re: Returning a result from 3 items in a list Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-11-25 11:22 +0000
csiph-web