[Tutor] Process list elements as consecutive pairs

Rüdiger Wolf rudiger.wolf at throughputfocus.com
Fri Mar 5 18:56:28 CET 2010


Hi

I am trying to Process list elements as consecutive pairs  into
consecutive pairs.  
Any pythonic suggestions?

listin = [1,2,3,4,5,6,7,8,9,10]
I want to process as consecutive pairs
1,2
3,4
5,6
7,8
9,10

Thanks
Rudiger



More information about the Tutor mailing list