list of the resulting substrings in other applicationsmore tangible delimiters may separate the data this example splits (and hence parsesthe string at commasa separator common in data returned by some database toolsline 'bob,hacker, line split(','['bob''hacker'' 'delimiters can be longer than single charactertooline " 'mspamaspamlumberjackline split("spam"[" ' "' ''lumberjack'although there are limits to the parsing potential of slicing and splittingboth run very fast and can handle basic text-extraction chores comma-separated text data is part of the csv file formatfor more advanced tools on this frontsee also the csv module in python' standard library other common string methods in action other string methods have more focused roles--for exampleto strip off whitespace at the end of line of textperform case conversionstest contentand test for substring at the end or frontline "the knights who say ni!\nline rstrip('the knights who say ni!line upper('the knights who say ni!\nline isalpha(false line endswith('ni!\ 'true line startswith('the'true alternative techniques can also sometimes be used to achieve the same results as string methods--the in membership operator can be used to test for the presence of substringfor instanceand length and slicing operations can be used to mimic endswithline 'the knights who say ni!\nline find('ni'!- true 'niin line true sub 'ni!\nline endswith(subtrue string fundamentals search via method call or expression end test via method call or slice