python insert space before capital letter code example
Example: how to add space before capital letter in python
text = 'WordWordWord'
new_text = ''
for i, letter in enumerate(text):
if i and letter.isupper():
new_text += ' '
new_text += letter