DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+8 =
Submit