+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’ ]

...