Help for this page

Select Code to Download


  1. or download this
    from itertools import product
    
    ...
        words = inputstring.split()
        for combo in product(' -', repeat=len(words) - 1):
            yield ''.join(w for pair in zip(words, combo + ('',)) for w in
    + pair)
    
  2. or download this
    'convert perl-to python'
    'convert-perl to python'
    'convert perl-to-python'
    'convert-perl-to python'
    'convert-perl-to-python'