Hello;
I'm studying some code examples from the python cookbook site. I came across this:

def colsplit(l, cols):
   rows = len(l) / cols
   if len(l) % cols:
       rows += 1
   m = []
   for i in range(rows):
       m.append(l[i::rows])
   return m

What I'd like to know is what is the double colon? What does it do?
       m.append(l[i::rows])

Thanks,
Eric

_________________________________________________________________
Type your favorite song.  Get a customized station.  Try MSN Radio powered by Pandora. http://radio.msn.com/?icid=T002MSN03A07001

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to