0
what is delimeter?
2 Answers
0
A delimiter is a sequence of one or more characters used to specify the boundary between separating a string.
E.g. If i have a string x, that contains a list of words seperated by commas. I can seperate the list of words delimited by a comma.
x = 'blue,red,green'
x.split(",")
['blue', 'red', 'green']
A delimter is whatever you want it to be. As another example lets make the delimiter be ':'
x = 'the:cat:sat:on:the:mat'
x.split(":")
['the','cat','sat','on','the','mat']
Trying to split the second example by a delimter of ',' wouldn't work as there are no commas in the string.
0
Can a delimeter " " "be?