split a string by comma in python
str = 'apple,orange,grape'
#split string by ,
chunks = str.split(',')
print(chunks)
Are there any code examples left?
New code examples in category Python
str = 'apple,orange,grape'
#split string by ,
chunks = str.split(',')
print(chunks)