Slicing Arrays in this way

Tobiah toby at tobiah.org
Wed May 2 18:03:24 EDT 2007


 >>> elegant_solution([1,2,3,4,5,6,7,8,9,10])
[[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]]



-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list