Function Details: split

Description


Returns a list of the words in the string, using sep as the delimiter string.


Extended Description


The split() method splits a string into a list of substrings based on the specified separator. If sep is not specified or is None, any whitespace string is a separator. If maxsplit is given, at most maxsplit splits are done.


Read More about split from Python Documentation

Function Signature



Module: builtins

Class: str

Parameters



Parameter List


  • sep: str
  • maxsplit: int

Return



Return Type


List[str]

Output

Explanation