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


Groups > comp.lang.python > #99322

Re: Getting math scores (Dictionary inside dictionary)

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Arie van Wingerden <xapwing@gmail.com>
Newsgroups comp.lang.python
Subject Re: Getting math scores (Dictionary inside dictionary)
Date Tue, 24 Nov 2015 13:23:56 +0100
Lines 29
Message-ID <mailman.108.1448367839.2291.python-list@python.org> (permalink)
References <efdba2f0-8d09-4c83-b11c-62857e8ff20b@googlegroups.com> <n31kdn$gvf$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de L4pJvlY3A3w/RyjPpdT1oQviSMe4t86aAbgCfxipSmlA==
Return-Path <xapwing@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.141
X-Spam-Level *
X-Spam-Evidence '*H*': 0.72; '*S*': 0.00; 'received:209.85.160.174': 0.07; 'cc:addr:python-list': 0.09; 'subject:Getting': 0.09; 'mark,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'language': 0.19; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'lawrence': 0.22; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.27; 'url:mailman': 0.30; 'code': 0.30; 'language.': 0.32; 'url:python': 0.33; 'extract': 0.33; 'url:listinfo': 0.34; 'skip:& 20': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'received:209.85': 0.36; 'skip:{ 10': 0.36; 'subject:: ': 0.37; 'skip:& 10': 0.37; '12,': 0.37; 'received:209': 0.38; 'delete': 0.38; 'thank': 0.38; 'url:mail': 0.40; 'mark': 0.40; 'your': 0.60; 'show': 0.62; 'leaving': 0.63; 'our': 0.64; 'results': 0.66; 'have?': 0.84; 'jordan,': 0.84; 'maths': 0.84; 'pythonistas,': 0.84; 'score.': 0.84; 'to:addr:yahoo.co.uk': 0.84; 'scores': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1txKMRmhwSnRMu4KXOFmMdol10gh7VdOIAxuai6sabY=; b=04o4WSGypBRnJM3PvBT1VMFjnEbBHJICzijqmd4M01zUZsbwiJtCfNNCdgX1YP2Anf o+9CS31EF6YsAy0SEux3IUB/84iud7w7XaZT4TodeFetNtJJr//ebARtIc26bglMZi5g HIJi+OmVLFST/MaX//xFJznQf2O/cB/NlCSsnCFWYbt4aoDdcuQBpvy9dThFPhBlPG0m Y6Ie8BU5DDQQ/0bOpAlKGAqiTgVnnFNCfdCu4tKRIOipAGL61qS3JroXBoLnMc6FubDX nK5ZpgFDOPC5IPKwz5DGN/Q2wuyB/utM7pa9mOwRgIXQrxPmohBkor0+aHmzF9qjp8io G3UA==
X-Received by 10.13.242.67 with SMTP id b64mr27513798ywf.287.1448367836303; Tue, 24 Nov 2015 04:23:56 -0800 (PST)
In-Reply-To <n31kdn$gvf$1@ger.gmane.org>
X-Content-Filtered-By Mailman/MimeDel 2.1.20+
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:99322

Show key headers only | View raw


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
>

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