group list into sublists python code example
Example: group list into sublists python
[input[i:i+n] for i in range(0, len(input), n)] # Use xrange in py2k
[input[i:i+n] for i in range(0, len(input), n)] # Use xrange in py2k