print a string with spaces between characters python

Solutions on MaxInterview for print a string with spaces between characters python by the best coders in the world

showing results for - "print a string with spaces between characters python"
Luna
20 Aug 2019
1string = 'very important'
2
3def emphasize(s):
4    s = s.replace('',' ')
5return s
6
7emphasize(string)
8#output: 'v e r y  i m p o r t a n t'