bystartw_tw@tg says to YSITDdef get_permutations(clst): if len(clst)==1: return [clst[0]] results = [] for idx, c in enumerate(clst): results += [c+substr for substr in get_permutations(clst[:idx] + clst[idx+1:])] return resultsat Fri, Oct 11, 2019 1:40 PM