Mar-05-2019, 03:34 PM
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
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures