Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41139
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <prvs=776bc1e6e=jeanmichel@sequans.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.142 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.73; '*S*': 0.01; 'example:': 0.03; 'cc:addr :python-list': 0.10; 'subject:python': 0.11; 'subject:3.3': 0.16; 'cheers,': 0.23; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'subject:list': 0.28; 'url:mailman': 0.29; 'url:python': 0.32; '-----': 0.32; 'url:listinfo': 0.32; 'url:org': 0.36; 'thank': 0.36; 'subject:: ': 0.38; 'positive': 0.38; 'store': 0.38; 'url:mail': 0.40; 'you.': 0.61; 'received:194': 0.61; 'information': 0.63; 'person,': 0.65; 'disclose': 0.69; 'notice:': 0.71; 'privileged.': 0.72; 'subject:Min': 0.84; 'medium.': 0.91 |
| X-IronPort-AV | E=Sophos;i="4.84,832,1355094000"; d="scan'208";a="1278883" |
| X-Virus-Scanned | amavisd-new at zimbra.sequans.com |
| Date | Tue, 12 Mar 2013 18:45:01 +0100 (CET) |
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
| To | Norah Jones <nh.jones01@gmail.com> |
| In-Reply-To | <abcd1234abc123ab12a0000000027000020000001052@gmail.com> |
| Subject | Re: Finding the Min for positive and negative in python 3.3 list |
| MIME-Version | 1.0 |
| X-Mailer | Zimbra 7.2.2_GA_2852 (ZimbraWebClient - GC7 (Linux)/7.2.2_GA_2852) |
| Content-Type | text/plain; charset="utf-8" |
| Content-Transfer-Encoding | base64 |
| Cc | python-list@python.org |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3241.1363110303.2939.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1363110303 news.xs4all.nl 6863 [2001:888:2000:d::a6]:37901 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:41139 |
Show key headers only | View raw
----- Original Message ----- > For example: > a=[-15,-30,-10,1,3,5] > I want to find a negative and a positive minimum. > example: negative > print(min(a)) = -30 > positive > print(min(a)) = 1 > -- > http://mail.python.org/mailman/listinfo/python-list min(a) and min([e for e in a if e >=0] Cheers, JM -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Finding the Min for positive and negative in python 3.3 list Jean-Michel Pichavant <jeanmichel@sequans.com> - 2013-03-12 18:45 +0100
csiph-web