I have a list containing integers which indicate how many capitalization will occur at once in a list.
x = [1, 2]
# when x == 1 then 1 capitalization per time
# when x == 2 then 2 capitalization per time
l = ['a', 'b', 'c']
the output would be like so...
Abc
aBc
abC
ABc
AbC
aBC
I can code this normally, but can it be done through itertools?