With four letters in a list
letters = ['a', 'b', 'c', 'd']
I would like to create another list with every letter in a combination so the result would look like:
['a-b', 'a-c', 'a-d'
'b-a', 'b-c', 'b-d',
'c-a', 'c-b', 'c-d',
'd-a', 'd-b', 'd-c']
How can it be done?