split a string by comma in python code example
Example: split a string by comma in python
str = 'apple,orange,grape'
#split string by ,
chunks = str.split(',')
print(chunks)
str = 'apple,orange,grape'
#split string by ,
chunks = str.split(',')
print(chunks)