If I have a string, for example which reads: \'Hello how are you today Joe\' How am I able to insert spaces into it at regular intervals? So for example I want to insert spaces
Just another way to do it
>>> ''.join(e if (i+1)%2 else e+" " for (i,e) in enumerate(list(s))) 'He ll o ho w ar e yo u to da y Jo e'