python split string every character

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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