Horje
how to split string with comma in python Code Example
how to split string with comma in python
# We can use the split() function and put a "," in the parameter 
# It'll return a list with the string split up by commas.
txt = "hello, my name is Peter, I am 26 years old"

x = txt.split(",")
print(x)
split a string by comma in python
str = 'apple,orange,grape'

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

print(chunks)




Python

Related
increase pie chart size python Code Example increase pie chart size python Code Example
multirow np.rand.randint Code Example multirow np.rand.randint Code Example
tensorflow matrix multiplication Code Example tensorflow matrix multiplication Code Example
python list divide Code Example python list divide Code Example
write a file python Code Example write a file python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7