Answers for "python cut string comma"

3

remove commas from string python

s = s.replace(',', '')
Posted by: Guest on September-23-2020
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

Python Answers by Framework

Browse Popular Code Answers by Language