Answers for "split a string by comma in python"

0

split a string by comma in python

str = 'apple,orange,grape'

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

print(chunks)
Posted by: Guest on May-12-2021

Code answers related to "split a string by comma in python"

Python Answers by Framework

Browse Popular Code Answers by Language