Is there a function in Python which generates all the strings of length n over a given alphabet?,"[''.join(i) for i in itertools.product('ab', repeat=4)]"