Say I have a list like the one below.
['butter', 'potatos', 'cheese', ['butter', 'potatos'], ['butter', 'cheese'], ['potatos', 'cheese']]
How can I change the list to one below where the two words combinations becomes one word?
['butter', 'potatos', 'cheese', 'butter+potatos', 'butter+cheese', 'potatos+cheese']
How can I concatenate each of the term in the transformed list in 1. into a single value with a space between each of the term as below?
['butter potatos cheese butter+potatos butter+cheese potatos+cheese']