The most common example of splitting is whitespace splitting, which has no arguments in the method call: X.split() returns a whitespace-split of string X. Other cases are customized splitting, where a string for splitting is given.


Splitting Examples

a = "heat flow 12.00".split()
b = "1,034,295".split(',')
S = '''Could be a paragraph
of some kind of long
manuscript containing thousands
of words.'''
c = S.split()