Q. Which method splits a string by a delimiter?
Solution:
split() divides a string, e.g., ‘a,b’.split(‘,’) = [‘a’, ‘b’].
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
split() divides a string, e.g., ‘a,b’.split(‘,’) = [‘a’, ‘b’].
Strengthen Your Practice with our comprehensive question bank.