May-21-2019, 01:25 AM
the bash shell for Unix has a feature that allows using a text token like
{a,b}{c,d}{e,f}
and produces all combinations as if ace acf ade adf bce bcf bde bdf
had been used in its place. has anyone seen or written a Python function that can do this to a string, maybe returning a list, such as:string_combos('{a,b}{c,d}{e,f}')
=> ['ace','acf','ade','adf','bce','bcf','bde','bdf']
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.