Mar-05-2019, 03:53 PM
(Mar-05-2019, 03:34 PM)ichabod801 Wrote: Is there some reason you need to use recursion?
def reset2 (l, stp): k = [] for s in range(stp, 0, -1): for i in range(1, int(len(l) / s) + 1): k.append(l[i * s - 1]) l = [x for x in l if x not in k] return k
Just to practice recursion... Thank you for the solution!