Suppose I have a string as:
s = 'HelloStackOverflow'
What is the most "pythonic" way to convert it to:
'H e l l o S t a c k O v e r f l o w '
?
(space after last character is indifferent)
I could come up with:
s = ''.join(map(lambda ch: ch+' ', s))
But I suppose there is a more transparent way to do it
' '.join(s)-?' '.join(s)fits the bill if you don't want a trailing space.