I want to generate all possible permutations for specific consonant/vowel setups. For example, I would like all possible 3 letter word permutations with the format of CVC (Consonant, Vowel, Consonant).
I don’t know of any way to multiply permutations:
permutations("bcdfghjklmnpqrstvwxyz",1) * permutations("aeiou",1) * permutations("bcdfghjklmnpqrstvwxyz",1)
How can this be achieved in python?
itertools.product to the rescue:
or if you want words specifically: