Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19989 > unrolled thread
| Started by | Aaron France <a.france.mailinglists@gmail.com> |
|---|---|
| First post | 2012-02-07 23:30 +0100 |
| Last post | 2012-02-07 23:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: iterating over list with one mising value Aaron France <a.france.mailinglists@gmail.com> - 2012-02-07 23:30 +0100
| From | Aaron France <a.france.mailinglists@gmail.com> |
|---|---|
| Date | 2012-02-07 23:30 +0100 |
| Subject | Re: iterating over list with one mising value |
| Message-ID | <mailman.5520.1328653918.27778.python-list@python.org> |
On 02/07/2012 11:09 PM, Mark Lawrence wrote: > On 07/02/2012 21:25, Aaron France wrote: >> for i in range(0, len(x), 2): >> print x[i-1], x[i] > x = ['with', 3, 'which', 1, 'were', 2, 'well', 1, 'water', 1, 'was', 4, > 'two', 1, 'to', 2, 'through', 1, 'thlabour', 1, 'these', 1, 'theat', 1, > 'the', 8, 'tetanus', 1, 'started', 1, 'size', 1, 'scent', 1, > 'respectively', 1, 'received', 1, 'problems', 2, 'prince', 1, > 'pregnancy', 1, 'poured', 1, 'peace', 1, 'pains', 1, 'painless', 1, > 'out', 1, 'of', 1, 'noseat', 1, 'nose', 2, 'no', 2, 'maternity', 1, > 'malformation', 1, 'made', 1, 'lower', 1, 'labour/delivery', 2, > 'kintampo', 1, 'into', 1, 'injections', 1, 'in', 3, 'i', 2, 'hospital', > 1, 'home', 1, 'him', 1, 'having', 1, 'had', 2, 'green', 1, 'gave', 1, > 'flowing', 2, 'encountered', 1, 'eleven', 1, 'during', 3, 'district', 1, > 'difficulty', 1, 'cord', 1, 'consecutive', 1, 'colour', 1, 'cleared', 1, > 'child', 1, 'checkups', 1, 'came', 1, 'but', 2, 'breathing', 2, > 'breath', 1, 'blood', 2, 'bleeding', 1, 'birth', 4, 'before', 1, 'bad', > 1, 'average', 1, 'at', 2, 'assist', 1, 'artificial', 1, 'around', 2, > 'antenatal', 1, 'and', 5, 'an', 1, 'ambrical', 1, 'air', 1, 'abdominal', > 1, '600am', 1, '100pm', 1, '', 3, 'other'] > for i in range(0, len(x), 2): > print x[i-1], x[i] > > other with > 3 which > ... > 1 > 3 other > > Houston, we've got a problem:) > Yupp. The real problem is that there's been over 20 messages about this 'problem'.
Back to top | Article view | comp.lang.python
csiph-web