I have the list which looks something of this sort. I wanted to know if there is any quick way to create sub list out of this?
list = [1,2,3,4,5,6,7,8,.....]
What is the best way in python to split list into this sublist?
1. [(1, 2), (3, 4), (5, 6), ...]
2. [(1, 2, 3), (4, 5, 6), ...]
3. [(1,2,3,4),(5,6,7,8), ....]