+1 vote
in Python by
What is split() function used for?

1 Answer

0 votes
by

Split fuction is used to split a string into shorter string using defined seperatos. letters = (” A, B, C”)

n = text.split(“,”)

print(n)

o/p: [‘A’, ‘B’, ‘C’ ]

Related questions

+1 vote
asked Feb 13, 2021 in Python by SakshiSharma
0 votes
asked Feb 2, 2021 in Python by SakshiSharma
...