Answers for "python split string in single characters"

6

python split string in characters

s = "foobar"
list(s)
['f', 'o', 'o', 'b', 'a', 'r']
Posted by: Guest on January-25-2021
1

python split every character in string

def split(word): 
    return [char for char in word]
Posted by: Guest on September-21-2020

Code answers related to "python split string in single characters"

Python Answers by Framework

Browse Popular Code Answers by Language