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


Groups > comp.lang.python > #61308

Re: python programming help

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <gary.herron@islandtraining.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'subject:help': 0.08; 'received:67.192': 0.09; 'received:67.192.241': 0.09; 'received:dfw.emailsrvr.com': 0.09; 'question.': 0.14; 'conditional': 0.16; 'hint:': 0.16; 'subject:programming': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'code,': 0.22; 'programming': 0.22; 'to:name:python- list@python.org': 0.22; 'header:User-Agent:1': 0.23; 'certainly': 0.24; 'received:emailsrvr.com': 0.24; 'looks': 0.24; 'class.': 0.26; 'purposes': 0.26; 'received:(smtp server)': 0.26; 'header :In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'matching': 0.30; 'gary': 0.31; 'beginning': 0.33; 'test': 0.35; 'but': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'solve': 0.60; 'you.': 0.62; 'email addr:gmail.com': 0.63; 'show': 0.63; 'helping': 0.70; 'age': 0.80; 'age.': 0.84; 'ages': 0.84; 'homework': 0.84
X-Virus-Scanned OK
Date Sun, 08 Dec 2013 10:20:37 -0800
From Gary Herron <gary.herron@islandtraining.com>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.1
MIME-Version 1.0
To "python-list@python.org" <python-list@python.org>
Subject Re: python programming help
References <264c1144-5d04-4ad0-aa32-f4e6770d210c@googlegroups.com>
In-Reply-To <264c1144-5d04-4ad0-aa32-f4e6770d210c@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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>
Newsgroups comp.lang.python
Message-ID <mailman.3732.1386527201.18130.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1386527201 news.xs4all.nl 2968 [2001:888:2000:d::a6]:41852
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:61308

Show key headers only | View raw


On 12/08/2013 09:59 AM, rafaellasav@gmail.com wrote:
> i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names of all the people who are that age.
> please help

This looks like homework for a beginning programming class. Correct?

We like helping people use Python, and we like helping people learn 
Python, but neither of those purposes are served by us *doing* your 
homework for you.

Please, you try to solve the problem, and when you get stuck, show us 
your code, and ask a specific question.

Hint:  You will almost certainly need a loop (through the dictionary 
entries), an 'if' conditional to test for the age matching the given 
age, and a print,

Gary Herron

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


Thread

python programming help rafaellasav@gmail.com - 2013-12-08 09:59 -0800
  Re: python programming help YBM <ybmess@nooos.fr.invalid> - 2013-12-08 19:07 +0100
    Re: python programming help rafaellasav@gmail.com - 2013-12-08 10:14 -0800
      Re: python programming help YBM <ybmess@nooos.fr.invalid> - 2013-12-08 19:18 +0100
      Re: python programming help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-08 18:25 +0000
      Re: python programming help Christopher Welborn <cjwelborn@live.com> - 2013-12-09 17:34 -0600
  Re: python programming help Roy Smith <roy@panix.com> - 2013-12-08 13:23 -0500
  Re: python programming help Gary Herron <gary.herron@islandtraining.com> - 2013-12-08 10:20 -0800
  Re: python programming help bob gailer <bgailer@gmail.com> - 2013-12-08 13:27 -0500
    Re: python programming help rafaellasav@gmail.com - 2013-12-08 10:32 -0800
      Re: python programming help rafaellasav@gmail.com - 2013-12-08 10:42 -0800
      Re: python programming help Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-12-08 10:52 -0800
        Re: python programming help rafaellasav@gmail.com - 2013-12-08 11:06 -0800
          Re: python programming help Chris Angelico <rosuav@gmail.com> - 2013-12-09 06:17 +1100
            Re: python programming help rurpy@yahoo.com - 2013-12-08 16:08 -0800
              Re: python programming help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-09 00:27 +0000
                Re: python programming help rurpy@yahoo.com - 2013-12-08 21:07 -0800
                Re: python programming help rusi <rustompmody@gmail.com> - 2013-12-08 21:20 -0800
                Re: python programming help rurpy@yahoo.com - 2013-12-09 21:15 -0800
                Re: python programming help Chris Angelico <rosuav@gmail.com> - 2013-12-09 18:57 +1100
                Re: python programming help rurpy@yahoo.com - 2013-12-09 21:07 -0800
                Re: python programming help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-09 09:34 +0000
                Meta Fight About Posting (was: python programming help) Travis Griggs <travisgriggs@gmail.com> - 2013-12-09 07:44 -0800
                Re: Meta Fight About Posting (was: python programming help) rusi <rustompmody@gmail.com> - 2013-12-09 08:25 -0800
                Re: Meta Fight About Posting (was: python programming help) rusi <rustompmody@gmail.com> - 2013-12-09 08:47 -0800
                Re: Meta Fight About Posting (was: python programming help) Roy Smith <roy@panix.com> - 2013-12-09 13:48 -0500
                Re: Meta Fight About Posting (was: python programming help) Roy Smith <roy@panix.com> - 2013-12-09 13:45 -0500
              Re: python programming help Chris Angelico <rosuav@gmail.com> - 2013-12-09 14:05 +1100
                Re: python programming help rurpy@yahoo.com - 2013-12-08 21:10 -0800
                Re: python programming help Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-09 00:22 -0500
                Re: python programming help Chris Angelico <rosuav@gmail.com> - 2013-12-09 19:15 +1100
                Re: python programming help rurpy@yahoo.com - 2013-12-09 21:10 -0800
                Re: python programming help Chris Angelico <rosuav@gmail.com> - 2013-12-10 16:29 +1100
          Re: python programming help Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-08 19:21 +0000
          Re: python programming help Terry Reedy <tjreedy@udel.edu> - 2013-12-08 16:17 -0500
          Re: python programming help YBM <ybmess@nooos.fr.invalid> - 2013-12-09 03:02 +0100
      Re: python programming help John Ladasky <john_ladasky@sbcglobal.net> - 2013-12-08 11:21 -0800
      Re: python programming help Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-09 13:00 +1300
        Re: python programming help YBM <ybmess@nooos.fr.invalid> - 2013-12-09 02:51 +0100
      Re: python programming help YBM <ybmess@nooos.fr.invalid> - 2013-12-09 03:31 +0100

csiph-web