Advertisement
maurobaraldi

Untitled

Aug 22nd, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. from operator import itemgetter
  2.  
  3. lambda lista, step: [itemgetter(0,-1)(lista[i:i+step]) for i in range(0, len(lista), step)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement