Peter Hoffmann
About
Archive
Talks
RSS Feed
Share
Peter Hoffmann
Follow
Director Data Engineering at
Blue Yonder
. Python Developer, Conference Speaker, Mountaineer
April 16, 2009
Multiple Tuple to Two-Pair Tuple in Python?
stackoverflow
python
This my Answer to the stackoverflow question:
Multiple Tuple to Two-Pair Tuple in Python?
:
[(tuple[a], tuple[a+1]) for a in range(0,len(tuple),2)]