Possible Duplicate: Iterate a list as pair (current, next) in Python
While iterating a list, I want to print the current item in the list, plus the next value in the list.
listOfStuff = [a,b,c,d,e]
for item in listOfStuff:
    print item, <nextItem>
The output would be:
a b
b c
c d
d e
 
     
     
     
     
     
    