R
rbt
Say I have a list that has 3 letters in it:
['a', 'b', 'c']
I want to print all the possible 4 digit combinations of those 3
letters:
4^3 = 64
aaaa
abaa
aaba
aaab
acaa
aaca
aaac
....
What is the most efficient way to do this?
['a', 'b', 'c']
I want to print all the possible 4 digit combinations of those 3
letters:
4^3 = 64
aaaa
abaa
aaba
aaab
acaa
aaca
aaac
....
What is the most efficient way to do this?