Thesplit()method splits a string into an array of substrings. Thesplit()method returns the new array. Thesplit()method does not change the original string. If (" ") is used as separator, the string is split between words. Syntax ...
Thesplit()method splits a string into a list. You can specify the separator, default separator is any whitespace. Note:When maxsplit is specified, the list will contain the specified number of elementsplus one. Syntax string.split(separator, maxsplit) ...
Thersplit()method splits a string into a list, starting from the right. If no "max" is specified, this method will return the same as thesplit()method. Note:When maxsplit is specified, the list will contain the specified number of elementsplus one. ...