add space between capital letters python 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