Split String into Array using Python

split method

text = 'First,Second,Third'
data = text.split(',')

print(data[0] + ' ' + data[1] + ' ' + data[2])

Leave a Comment

Cancel reply

Your email address will not be published.