I am trying to make a list of possible permutations. Bslow is the code. Somebody help me because it outputs nothing.
4/8/2021 11:28:38 PM
What is the result that you're after?
['ab', 'ac', 'ad', 'ae', ...] ???
if so then
print([''.join(e) for e in y])
This is the same as;
l = 
for e in y:
for elems in y:
x = "".join(elems)
This creates an infinite loop. You're increasing the length of y with each iteration.
ChaoticDawg, what do you suggest? Doing if len(y) == 0 is also doing nothing.
Send us a message