I have a list of 4 sublists. I’d like to take filter out every sub list based on the grouping. So for instance, the first sublist I’d like to take every 2nd item, and the 2nd sublist I’d like to take every 3rd item and so forth. What would be a good approach?
for learning purpose, i wanted to know the alternate method for solving this problem, So if possible, can you please share your approach to solve this problem.