Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

split a string by comma in python

str = 'apple,orange,grape'

#split string by ,
chunks = str.split(',')

print(chunks)
Source by pythonexamples.org #
 
PREVIOUS NEXT
Tagged: #split #string #comma #python
ADD COMMENT
Topic
Name
7+6 =