Q. Which method splits a string by a delimiter?

A
split()
B
divide()
C
break()
D
separate()
Solution:

split() divides a string, e.g., ‘a,b’.split(‘,’) = [‘a’, ‘b’].

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!