python split list into n sublists

Solutions on MaxInterview for python split list into n sublists by the best coders in the world

showing results for - "python split list into n sublists"
Amelie
17 May 2016
1[input[i:i+n] for i in range(0, len(input), n)]        # Use xrange in py2k
2