python split string every character

Solutions on MaxInterview for python split string every character by the best coders in the world

showing results for - "python split string every character"
Mads
04 Oct 2019
1s = "foobar"
2s = list(s)
3print(s)
4
5<output: ['f', 'o', 'o', 'b', 'a', 'r']>
similar questions
queries leading to this page
python split string every character