How to turn put spaces between letters in a string python

Code examples

2
0

add whitespaces between char python

s = "BINGO"
print(" ".join(s))
0
0

print a string with spaces between characters python

string = 'very important'

def emphasize(s):
    s = s.replace('',' ')
return s

emphasize(string)
#output: 'v e r y  i m p o r t a n t'

Similar pages

Similar pages with examples

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................