Jul-22-2022, 10:17 PM
(Jul-22-2022, 04:06 PM)deanhystad Wrote: None of the itertools do what you want, but at the bottom of the page there are recipes that show how to use itertools to make other tools. grouper does not do what you want, but sliding_window does.for a step interval of 1 it looks like it can do that. but what if i want a step interval of N? oh wait, selecting every Nth item of the returned list would be that for a step interval of N. let's see, now, how to slice an interval of N.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.