I have the letters "A", "B", "C", "D", and "E" and I want to generate all possible strings of length 7 with these letters (redundancy allowed). So, I would like to get:
AAAAAAA
AAAAAAB
AAAAAAC
AAAAAAD
AAAAAAE
...
So on and so forth with all possible strings. I know how to do this manually via the following, create:
A = ['A'], B = ['B'], etc...then create embedded for loops to concatenate all elements. However, I would like to just feed in a generic list of ABCDE in a function, and just feed the function an integer to get a variable result. How could I do this?