Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #97983
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Christian Gollwitzer <auriocus@gmx.de> |
| Newsgroups | comp.lang.python |
| Subject | Re: i want to print next element i liste |
| Date | Wed, 28 Oct 2015 17:12:21 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 22 |
| Message-ID | <n0qs11$3v5$1@dont-email.me> (permalink) |
| References | <25e0abea-f1a6-446c-af4e-f01fb5b482f0@googlegroups.com> <76077a86-40cf-42b0-bace-a8c25c03729e@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Wed, 28 Oct 2015 16:10:09 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="5b34c4d95c55a6e81d76692edf31271e"; logging-data="4069"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xDNt3+GQ91zHJmo+LvsqbZJL7IbA/ass=" |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
| In-Reply-To | <76077a86-40cf-42b0-bace-a8c25c03729e@googlegroups.com> |
| Cancel-Lock | sha1:1u4bQ44Tb81DaJ0AMhEf4fk1Pd0= |
| Xref | csiph.com comp.lang.python:97983 |
Show key headers only | View raw
Am 28.10.15 um 15:34 schrieb Ellelele Toget: > On Wednesday, October 28, 2015 at 1:23:40 PM UTC+1, Ellelele Toget wrote: >> L=[house, book, pen, book, pencil, book, clock, cat, book, good, write] >> for i,w in enumerate(L): >> if L.count(w)>=3: >> order_list.append(i) >> print i,w >> >> result: >> 1 book >> 3 book >> 5 book >> 8 book >> how can i print "good" then? it comes after last book element. > next() function print next element in dictionary but this is a list therefore is there Another function for list like next() or Another codes > L[i+1] ??? Christian
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
i want to print next element i liste ellelelet@gmail.com - 2015-10-28 05:23 -0700
Re: i want to print next element i liste darnold <darnold992000@yahoo.com> - 2015-10-28 07:05 -0700
Re: i want to print next element i liste darnold <darnold992000@yahoo.com> - 2015-10-28 07:16 -0700
Re: i want to print next element i liste Ellelele Toget <ellelelet@gmail.com> - 2015-10-28 07:34 -0700
Re: i want to print next element i liste Christian Gollwitzer <auriocus@gmx.de> - 2015-10-28 17:12 +0100
Re: i want to print next element i liste Ellelele Toget <ellelelet@gmail.com> - 2015-10-28 14:58 -0700
Re: i want to print next element i liste Ellelele Toget <ellelelet@gmail.com> - 2015-10-28 15:02 -0700
Re: i want to print next element i liste Larry Hudson <orgnut@yahoo.com> - 2015-10-28 19:12 -0700
Re: i want to print next element i liste Ellelele Toget <ellelelet@gmail.com> - 2015-10-29 01:55 -0700
Re: i want to print next element i liste Denis McMahon <denismfmcmahon@gmail.com> - 2015-10-29 12:48 +0000
csiph-web