Answers for "python split string every character"

0

python split string every character

s = "foobar"
s = list(s)
print(s)

<output: ['f', 'o', 'o', 'b', 'a', 'r']>
Posted by: Guest on September-25-2021

Code answers related to "python split string every character"

Python Answers by Framework

Browse Popular Code Answers by Language