[ad_1]
Just use replace:
>>> text = raw_input('Enter text: ')
Enter text: iphone 7 black
>>> text.replace(' ', '+')
'iphone+7+black'
2
[ad_2]
solved Re-formatting user input with spaces
[ad_1]
Just use replace:
>>> text = raw_input('Enter text: ')
Enter text: iphone 7 black
>>> text.replace(' ', '+')
'iphone+7+black'
2
[ad_2]
solved Re-formatting user input with spaces