Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99327

Re: Getting math scores (Dictionary inside dictionary)

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: Getting math scores (Dictionary inside dictionary)
Date 2015-11-24 13:30 +0000
Message-ID <mailman.111.1448371835.2291.python-list@python.org> (permalink)
References <efdba2f0-8d09-4c83-b11c-62857e8ff20b@googlegroups.com> <n31kdn$gvf$1@ger.gmane.org> <CADkALSEPW9BNW6taj3hh6h3YbzWvgWZ2JCyj53oqN_Oh_GjY+w@mail.gmail.com>

Show all headers | View raw


On 24/11/2015 12:23, Arie van Wingerden wrote:
> Hi Mark, what use would that have? Please show your code ...
>
> 2015-11-24 13:15 GMT+01:00 Mark Lawrence <breamoreboy@yahoo.co.uk>:
>
>> On 24/11/2015 11:04, Cai Gengyang wrote:
>>
>>> results = {
>>>     "gengyang": { "maths": 10, "english": 15},
>>>     "ensheng": {"maths": 12, "english": 10},
>>>     "jordan": {"maths": 9, "english": 13}
>>>     }
>>>
>>> How do you get gengyang's maths scores ?
>>>
>>> Thank you ...
>>>
>>>
>> One way is to delete the scores for ensheng and jordan, only leaving those
>> for gengyang, then extract the maths score.
>>
>> --
>> My fellow Pythonistas, ask not what our language can do for you, ask
>> what you can do for our language.
>>
>> Mark Lawrence
>>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>

1) I was being facetious.
2) How many times do people have to be asked not to top post here before 
they stop top posting?
3) I only have two things to say so this is superfluous.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Getting math scores (Dictionary inside dictionary) Cai Gengyang <gengyangcai@gmail.com> - 2015-11-24 03:04 -0800
  Re: Getting math scores (Dictionary inside dictionary) Steven D'Aprano <steve@pearwood.info> - 2015-11-24 22:28 +1100
  Re: Getting math scores (Dictionary inside dictionary) Cai Gengyang <gengyangcai@gmail.com> - 2015-11-24 19:22 +0800
  Re: Getting math scores (Dictionary inside dictionary) Arie van Wingerden <xapwing@gmail.com> - 2015-11-24 12:10 +0100
  Re: Getting math scores (Dictionary inside dictionary) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-11-24 12:15 +0000
  Re: Getting math scores (Dictionary inside dictionary) Arie van Wingerden <xapwing@gmail.com> - 2015-11-24 13:23 +0100
  Re: Getting math scores (Dictionary inside dictionary) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-11-24 13:30 +0000
    Re: Getting math scores (Dictionary inside dictionary) Marko Rauhamaa <marko@pacujo.net> - 2015-11-24 15:41 +0200
      Re: Getting math scores (Dictionary inside dictionary) Arie van Wingerden <xapwing@gmail.com> - 2015-11-24 15:43 +0100
  Re: Getting math scores (Dictionary inside dictionary) Denis McMahon <denismfmcmahon@gmail.com> - 2015-11-24 14:09 +0000

csiph-web