Hey I just wanna know what is pythons equivalent of Ruby's each_slice(count)
Like I wanna take 2 elements from list for each iteration.
Like for [1,2,3,4,5,6] i wanna handle 1,2 in first iteration then 3,4 then 5,6.
Ofcourse there is a roundabout way using index values. But is there a direct function or someway to do this directly?
Thank you