I am trying to come up with a way to generate all possible unique strings from an alphabet of 20 characters where the order within the string doesn\'t matter, and the length
the code for itertools.product does exactly what you want and is much more efficient that nested loops
i suspect that what you really want is itertools.combinations_with_replacement