what is this?
Eric Price
soyouthinkimgonnalikethis at hotmail.com
Thu Jan 4 11:42:00 EST 2007
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
More information about the Python-list
mailing list