0

what is delimeter?

25th Jul 2016, 4:24 AM
Mayank Sharma
Mayank Sharma - avatar
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.
25th Jul 2016, 4:37 AM
Rob McBryde
Rob McBryde - avatar
0
Can a delimeter " " "be?
25th Jul 2016, 8:19 AM
Andreas Kilian
Andreas Kilian - avatar