Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python string to list with separator

string = "Hello, world!"
x = string.split(",") # separator here is ","
print(x) # x = ["Hello", " world!"]
 
PREVIOUS NEXT
Tagged: #python #string #list #separator
ADD COMMENT
Topic
Name
2+8 =