Suppose I have 4 words, as a string. How do I join them all like this?
s = orange apple grapes pear
The result would be a String:
"orangeapple/orangegrapes/orangepear/applegrapes/applepear/grapespear/orangeapplegrapes/orangeapplepear/applegrapespear"
I am thinking:
list_words = s.split(' ')
for l in list_words:
And then use enumerate? Is that what you would use to do this function?